Skip to content

Commit

Permalink
Update boss_death.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
luan authored Nov 3, 2023
1 parent 75c6b18 commit 3beef57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/reward_chest/boss_death.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function bossDeath.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUn
-- Make sure it is a boss
if monsterType and monsterType:isRewardBoss() then
if not corpse.isContainer or not corpse:isContainer() then
if corpse.getId() then
if corpse.getId then
logger.warn("[bossDeath.onDeath] Corpse (id: {}, name: {}) for reward boss {} is not a container.", corpse:getId(), corpse:getName(), creature:getName())
else
logger.warn("[bossDeath.onDeath] Error to get corpseId from boss: {}", creature:getName())
Expand Down

0 comments on commit 3beef57

Please sign in to comment.