Commit 95065b5b5ff2829ef7765f540eff71594f8f2070
1 parent
5345bac7
被动技新
Showing
2 changed files
with
3 additions
and
0 deletions
 
Show diff stats
src/adv/AdvPassive.lua
| @@ -119,6 +119,7 @@ Passive.AFTER_ROUND = 27 --经过 x回合时 | @@ -119,6 +119,7 @@ Passive.AFTER_ROUND = 27 --经过 x回合时 | ||
| 119 | Passive.GET_BUFF = 28 --获得指定buff | 119 | Passive.GET_BUFF = 28 --获得指定buff | 
| 120 | Passive.OPEN_BLOCK = 29 --翻开格子 | 120 | Passive.OPEN_BLOCK = 29 --翻开格子 | 
| 121 | Passive.OPEN_MONSTER = 30 --翻开怪物 | 121 | Passive.OPEN_MONSTER = 30 --翻开怪物 | 
| 122 | +Passive.PLAYER_BUFF = 31 --玩家获得buff | ||
| 122 | 123 | ||
| 123 | 124 | ||
| 124 | -- 不同的开启条件 | 125 | -- 不同的开启条件 | 
| @@ -180,6 +181,7 @@ PassiveCondFactory[Passive.GET_BUFF] = function(_Passive) | @@ -180,6 +181,7 @@ PassiveCondFactory[Passive.GET_BUFF] = function(_Passive) | ||
| 180 | end | 181 | end | 
| 181 | end | 182 | end | 
| 182 | end | 183 | end | 
| 184 | +PassiveCondFactory[Passive.PLAYER_BUFF] = PassiveCondFactory[Passive.GET_BUFF] | ||
| 183 | 185 | ||
| 184 | 186 | ||
| 185 | PassiveCondFactory[Passive.BORN_ONCE] = function(_Passive) | 187 | PassiveCondFactory[Passive.BORN_ONCE] = function(_Passive) | 
src/adv/AdvPlayer.lua
| @@ -696,6 +696,7 @@ function Player:addBuff(buffId, releaser) | @@ -696,6 +696,7 @@ function Player:addBuff(buffId, releaser) | ||
| 696 | self.battle.player:attrChangeCondBuffCheck(2, buffId) | 696 | self.battle.player:attrChangeCondBuffCheck(2, buffId) | 
| 697 | self.battle.adv:checkAchievement(self.battle.adv.AchievType.GetBuff, 1, buffId) | 697 | self.battle.adv:checkAchievement(self.battle.adv.AchievType.GetBuff, 1, buffId) | 
| 698 | self.battle.adv:pushBackEvent(AdvBackEventType.Buff, {buffId = buffId}) | 698 | self.battle.adv:pushBackEvent(AdvBackEventType.Buff, {buffId = buffId}) | 
| 699 | + self.battle:triggerPassive(Passive.PLAYER_BUFF, {buffId = buffId}) | ||
| 699 | end | 700 | end | 
| 700 | return status | 701 | return status | 
| 701 | end | 702 | end | 
- 
mentioned in commit 52f8c5f05d0a531232a7dd7887becd2a77986aa1
 - 
mentioned in commit 52f8c5f05d0a531232a7dd7887becd2a77986aa1
 - 
mentioned in commit ba6d85edc65900830c7e168102d70671881b5808
 - 
mentioned in commit ba6d85edc65900830c7e168102d70671881b5808