Commit 987d660ee0296aeee366184f64d36c432c62fcea
1 parent
9fe9f3d1
advBuff 闪屏警告
Showing
3 changed files
with
8 additions
and
0 deletions
Show diff stats
src/GlobalVar.lua
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 | ... | ... |