diff --git a/src/adv/AdvBlock.lua b/src/adv/AdvBlock.lua index 4b24f0c..91c986a 100644 --- a/src/adv/AdvBlock.lua +++ b/src/adv/AdvBlock.lua @@ -43,8 +43,8 @@ function Block:updateEvent(event, isInit) if self:isBuild() then self.room.map.adv.battle:removeBuildByPos(self.room.roomId, self.blockId) elseif self:isMonster() then - if block.event.mId then - self.room.map.adv.battle:removeEnemyById(block.event.mId) + if self.event.mId then + self.room.map.adv.battle:removeEnemyById(self.event.mId) end end end -- libgit2 0.21.2