Commit e0c0365a328ff9617b79035eeb1fded3d54af46e
1 parent
8dc7d93a
反的判断
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
src/adv/AdvBuff.lua
@@ -584,12 +584,12 @@ end | @@ -584,12 +584,12 @@ end | ||
584 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > | 584 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > |
585 | function Buff:isHide() | 585 | function Buff:isHide() |
586 | if self.isDel then | 586 | if self.isDel then |
587 | - return false | 587 | + return true |
588 | end | 588 | end |
589 | if self.buffData.mapLock == 1 and self.mapId and self.owner.battle.adv:getCurMap().mapId ~= self.mapId then | 589 | if self.buffData.mapLock == 1 and self.mapId and self.owner.battle.adv:getCurMap().mapId ~= self.mapId then |
590 | - return false | 590 | + return true |
591 | end | 591 | end |
592 | - return true | 592 | + return false |
593 | end | 593 | end |
594 | 594 | ||
595 | --删除buff 时调用 | 595 | --删除buff 时调用 |
src/adv/AdvPassive.lua
@@ -334,7 +334,7 @@ function Passive:effect(triggerPms) | @@ -334,7 +334,7 @@ function Passive:effect(triggerPms) | ||
334 | end | 334 | end |
335 | 335 | ||
336 | function Passive:afterRound() | 336 | function Passive:afterRound() |
337 | - if self.isDel or self.owner.isDead or self.owner.lock or not self:isHide() then return end | 337 | + if self.isDel or self.owner.isDead or self.owner.lock or self:isHide() then return end |
338 | if self.round > 0 then --回合触发的 | 338 | if self.round > 0 then --回合触发的 |
339 | self.round = self.round - 1 | 339 | self.round = self.round - 1 |
340 | end | 340 | end |
@@ -355,12 +355,12 @@ end | @@ -355,12 +355,12 @@ end | ||
355 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > | 355 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > |
356 | function Passive:isHide() | 356 | function Passive:isHide() |
357 | if self.isDel then | 357 | if self.isDel then |
358 | - return false | 358 | + return true |
359 | end | 359 | end |
360 | if self.passiveData.mapLock == 1 and self.mapId and self.owner.battle.adv:getCurMap().mapId ~= self.mapId then | 360 | if self.passiveData.mapLock == 1 and self.mapId and self.owner.battle.adv:getCurMap().mapId ~= self.mapId then |
361 | - return false | 361 | + return true |
362 | end | 362 | end |
363 | - return true | 363 | + return false |
364 | end | 364 | end |
365 | 365 | ||
366 | -- 可以触发 | 366 | -- 可以触发 |