diff --git a/src/adv/AdvBlock.lua b/src/adv/AdvBlock.lua index 49a4671..7d59f32 100644 --- a/src/adv/AdvBlock.lua +++ b/src/adv/AdvBlock.lua @@ -36,6 +36,11 @@ end function Block:clear() if self:getEventType() == AdvEventType.Trap then self.trapId = self.event.id + elseif self:getEventType() == AdvEventType.Build then + local build = self.room.map.adv.battle:getBuild(self.room.roomId, self.blockId, self.room.map.mapIdx) + if build then + build.isDead = true + end end self.event = nil end -- libgit2 0.21.2