Commit eb87ab7dc07411d9693f39b55c6572bc46a1ecaa
Merge branch 'develop' of 120.26.43.151:wasteland/server into develop
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/actions/PvpAction.lua
src/adv/AdvBlock.lua
... | ... | @@ -332,7 +332,9 @@ end |
332 | 332 | function Block:getObstacle() |
333 | 333 | if self:isMonster() then |
334 | 334 | local enemy = self.room.map.adv.battle:getEnemy(self.room.roomId, self.blockId) |
335 | - return enemy:getObstacle() | |
335 | + if enemy then | |
336 | + return enemy:getObstacle() | |
337 | + end | |
336 | 338 | end |
337 | 339 | local data = self:getEventData() |
338 | 340 | if not data then return 0 end | ... | ... |