canary/data/scripts/creaturescripts/monster/forge_kill.lua

13 lines
389 B
Lua
Raw Permalink Normal View History

local forgeKill = CreatureEvent("ForgeSystemMonster")
function forgeKill.onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local targetMonster = creature:getMonster()
if not targetMonster then
return true
end
return ForgeMonster:onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
end
forgeKill:register()