Commit da743fbecb7a3d8f01965648d088bf7eef50d8dd
1 parent
b8b1c164
被动效果
Showing
2 changed files
with
2 additions
and
0 deletions
Show diff stats
src/GlobalVar.lua
| @@ -214,6 +214,7 @@ AdvBackEventType = { | @@ -214,6 +214,7 @@ AdvBackEventType = { | ||
| 214 | Level = 25, -- 升级 | 214 | Level = 25, -- 升级 |
| 215 | LinkChooseOver = 26, -- 连锁事件结束 | 215 | LinkChooseOver = 26, -- 连锁事件结束 |
| 216 | BuffEffect = 27, -- buff 效果 | 216 | BuffEffect = 27, -- buff 效果 |
| 217 | + PassiveEffect = 28, -- 被动 效果 | ||
| 217 | } | 218 | } |
| 218 | 219 | ||
| 219 | AdvScoreType = { | 220 | AdvScoreType = { |
src/adv/AdvPassive.lua
| @@ -414,6 +414,7 @@ function Passive:trigger(condType, params) --触发检查 | @@ -414,6 +414,7 @@ function Passive:trigger(condType, params) --触发检查 | ||
| 414 | if self.round and self.round > 0 then -- cd | 414 | if self.round and self.round > 0 then -- cd |
| 415 | return | 415 | return |
| 416 | end | 416 | end |
| 417 | + self.owner.battle.adv:pushBackEvent(AdvBackEventType.PassiveEffect, {show = self.passiveData.show, roomId = self.owner.roomId, blockId = self.owner.blockId }) | ||
| 417 | self:effect(params) | 418 | self:effect(params) |
| 418 | end | 419 | end |
| 419 | 420 |