My Necromancer Summons Won't Despawn

So I’ve been modding/playing with the necro for months now, and in one of the recent patches I noticed that something broke my summons from despawning. I’m not sure if I need updating to something, I’m not really the coder when it comes to my mod(as far as lua), I’m more of the idea and art guy(with rough json know-how). My question I guess is for the devs, did something change and why doesn’t this work anymore?

local DestroyEntityOnExpire = class()

function DestroyEntityOnExpire:on_buff_removed(entity, buff)
if buff and buff:is_duration_expired() then
radiant.entities.destroy_entity(entity)
end
end

return DestroyEntityOnExpire

Thanks in advance :wink:

2 Likes

Good catch! This looks like a bug introduced in one of the recent optimizations. Should be fixed in the next release.

7 Likes