canary/data/scripts/creaturescripts/monster/forge_kill.lua
Marco 4af13eefdc
fix: small adjustments and corrections to the core (#2524)
- Previously, players were not being removed from the room upon killing
the boss, as the relevant script was confined to rlmap only. This update
ensures its functionality across any datapack.
- Hirelings are now accessible beyond rlmap environments.
- Addressed an issue with the loading of VIP days library.
- Relocated the large sea shell asset to the core.
- Implemented VIP status check and associated actions.
- Transferred weapons scripts to the core.
2024-06-04 22:17:28 -03:00

12 lines
389 B
Lua

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()