Commit 739cf86a88267a85a9190dce361a5124169a9669
1 parent
e1b26027
字段名错误
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/adv/AdvBlock.lua
... | ... | @@ -43,8 +43,8 @@ function Block:updateEvent(event, isInit) |
43 | 43 | if self:isBuild() then |
44 | 44 | self.room.map.adv.battle:removeBuildByPos(self.room.roomId, self.blockId) |
45 | 45 | elseif self:isMonster() then |
46 | - if block.event.mId then | |
47 | - self.room.map.adv.battle:removeEnemyById(block.event.mId) | |
46 | + if self.event.mId then | |
47 | + self.room.map.adv.battle:removeEnemyById(self.event.mId) | |
48 | 48 | end |
49 | 49 | end |
50 | 50 | end | ... | ... |