Commit 29fe50452efc54df8939d7b5e0c84e7ba5984f67
1 parent
819d7978
检查点修改
Showing
1 changed file
with
9 additions
and
8 deletions
Show diff stats
src/adv/AdvMap.lua
... | ... | @@ -258,20 +258,21 @@ function Map:openBlock(roomId, blockId, isPlayer, ignoreBack) |
258 | 258 | if isPlayer then |
259 | 259 | self.adv.battle.player:triggerPassive(Passive.OPEN_BLOCK) |
260 | 260 | self.adv.owner:checkTaskEnter("AdvOpenBlock") |
261 | + | |
262 | + -- 潜行检查 | |
263 | + local sneakBuff = self.adv.battle.player:hadBuff(Buff.SNEAK) | |
264 | + if sneakBuff then | |
265 | + local enemys = self:getEnemysBySize(roomId, blockId, 2) | |
266 | + if #enemys > 0 then | |
267 | + sneakBuff:uncover() | |
268 | + end | |
269 | + end | |
261 | 270 | end |
262 | 271 | |
263 | 272 | if not ignoreBack then |
264 | 273 | self.adv:backBlockChange(roomId, blockId) |
265 | 274 | end |
266 | 275 | |
267 | - -- 潜行检查 | |
268 | - local sneakBuff = self.adv.battle.player:hadBuff(Buff.SNEAK) | |
269 | - if sneakBuff then | |
270 | - local enemys = self:getEnemysBySize(roomId, blockId, 2) | |
271 | - if #enemys > 0 then | |
272 | - sneakBuff:uncover() | |
273 | - end | |
274 | - end | |
275 | 276 | end |
276 | 277 | end |
277 | 278 | ... | ... |