Commit 4615ea54b09719e828662ff967a00426897e4563

Authored by zhouhaihai
1 parent 1e789624

修改调用位置

Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
src/adv/AdvPlayer.lua
... ... @@ -90,6 +90,12 @@ end
90 90 function BaseObject:clear()
91 91 self.buffs = {}
92 92 self.passives = {}
  93 + if self:is("Enemy") then
  94 + self.battle.player:attrChangeCondBuffCheck(3, self:getClassify())
  95 + for _, monster in pairs(self.battle.player:getTeam(2)) do
  96 + monster:attrChangeCondBuffCheck(3, self:getClassify())
  97 + end
  98 + end
93 99 end
94 100  
95 101 function BaseObject:addPassive(params)
... ... @@ -425,12 +431,6 @@ function BaseObject:hurt(value, releaser, params)
425 431 self.battle.adv:checkAchievement(self.battle.adv.AchievType.KillByBuff, 1, params.buffId)
426 432 end
427 433 self.isDead = true
428   - if self:is("Enemy") then
429   - self.battle.player:attrChangeCondBuffCheck(3, self:getClassify())
430   - for _, monster in pairs(self.battle.player:getTeam(2)) do
431   - monster:attrChangeCondBuffCheck(3, self:getClassify())
432   - end
433   - end
434 434 end
435 435 self:triggerPassive(Passive.HURT_PERCENT_SELF, {value = value / self.hpMax})
436 436 for _, team in ipairs(self:getTeam(1, true)) do
... ...