Commit 987d660ee0296aeee366184f64d36c432c62fcea

Authored by zhouhaihai
1 parent 9fe9f3d1

advBuff 闪屏警告

src/GlobalVar.lua
... ... @@ -212,6 +212,7 @@ AdvBackEventType = {
212 212 Artifact = 24, --获得神器
213 213 Level = 25, -- 升级
214 214 LinkChooseOver = 26, -- 连锁事件结束
  215 + BuffEffect = 27, -- buff 效果
215 216 }
216 217  
217 218 AdvScoreType = {
... ...
src/adv/AdvBuff.lua
... ... @@ -576,6 +576,9 @@ end
576 576  
577 577 function Buff:effect()
578 578 self:decCount()
  579 + if self.buffData.show:sismember(2, " ") then
  580 + self.owner.battle.adv:pushBackEvent(AdvBackEventType.BuffEffect, {etype = 2})
  581 + end
579 582 if self._effectValue then
580 583 return self:_effectValue()
581 584 end
... ...
src/adv/AdvPlayer.lua
... ... @@ -699,6 +699,10 @@ function Player:addBuff(buffId, releaser)
699 699 self.battle.adv:checkAchievement(self.battle.adv.AchievType.GetBuff, 1, buffId)
700 700 self.battle.adv:pushBackEvent(AdvBackEventType.Buff, {buffId = buffId})
701 701 self.battle:triggerPassive(Passive.PLAYER_BUFF, {buffId = buffId})
  702 + local buffData = csvdb["adv_map_buffCsv"][buffId]
  703 + if buffData and buffData.show:sismember(1, " ") then
  704 + self.battle.adv:pushBackEvent(AdvBackEventType.BuffEffect, {etype = 1})
  705 + end
702 706 end
703 707 return status
704 708 end
... ...