Commit d92cda58b11e89718a9e68c5598bd3b955f86ada
Merge branch 'bugfix' of 120.26.43.151:wasteland/server into bugfix
Showing
3 changed files
with
8 additions
and
8 deletions
Show diff stats
src/adv/AdvBuff.lua
... | ... | @@ -584,12 +584,12 @@ end |
584 | 584 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > |
585 | 585 | function Buff:isHide() |
586 | 586 | if self.isDel then |
587 | - return false | |
587 | + return true | |
588 | 588 | end |
589 | 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 | 591 | end |
592 | - return true | |
592 | + return false | |
593 | 593 | end |
594 | 594 | |
595 | 595 | --删除buff 时调用 | ... | ... |
src/adv/AdvPassive.lua
... | ... | @@ -334,7 +334,7 @@ function Passive:effect(triggerPms) |
334 | 334 | end |
335 | 335 | |
336 | 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 | 338 | if self.round > 0 then --回合触发的 |
339 | 339 | self.round = self.round - 1 |
340 | 340 | end |
... | ... | @@ -355,12 +355,12 @@ end |
355 | 355 | -- 在当前阶段不可用 小透明 < 不会回合遍历 不会查找遍历 可以删除遍历 可以下层遍历 > |
356 | 356 | function Passive:isHide() |
357 | 357 | if self.isDel then |
358 | - return false | |
358 | + return true | |
359 | 359 | end |
360 | 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 | 362 | end |
363 | - return true | |
363 | + return false | |
364 | 364 | end |
365 | 365 | |
366 | 366 | -- 可以触发 | ... | ... |
src/adv/AdvPlayer.lua
... | ... | @@ -349,7 +349,7 @@ function BaseObject:hurt(value, releaser, params) |
349 | 349 | end |
350 | 350 | |
351 | 351 | if params.hurtType ~= 5 then |
352 | - if params.hurtType ~= 6 or params.hurtType ~= 4 then | |
352 | + if params.hurtType ~= 6 and params.hurtType ~= 4 then | |
353 | 353 | value = math.max(0, value - self.def) |
354 | 354 | end |
355 | 355 | value = self:getInjuredValue(value) --减伤计算 | ... | ... |