Skip to content

Commit

Permalink
redo check.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Oct 24, 2023
1 parent 9ff0567 commit 8319e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts/reward_chest/boss_death.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function bossDeath.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUn
local monsterType = creature:getType()
-- Make sure it is a boss
if monsterType and monsterType:isRewardBoss() then
if not corpse:isContainer() then
logger.warn("[bossDeath.onDeath] Corpse (id: {}) for reward boss {} is not a container.", corpse:getId(), creature:getName())
if not corpse.isContainer or not corpse:isContainer() then
logger.warn("[bossDeath.onDeath] Corpse (id: {}, name: {}) for reward boss {} is not a container.", corpse:getId(), corpse:getName(), creature:getName())
end
corpse:registerReward()
local bossId = creature:getId()
Expand Down

0 comments on commit 8319e32

Please sign in to comment.