Commit 987d660ee0296aeee366184f64d36c432c62fcea

Authored by zhouhaihai
1 parent 9fe9f3d1

advBuff 闪屏警告

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