Commit 35305a02be6ca8a92a1c1ae0c28929cdae009fc6
1 parent
821f2b60
被动次数是否刷新
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/adv/AdvPassive.lua
... | ... | @@ -248,6 +248,9 @@ function Passive:effect(trigger) |
248 | 248 | self["effect" .. effType](self, effValue, trigger) |
249 | 249 | end |
250 | 250 | end |
251 | + if self.count <= 0 and self.passiveData.refresh == 1 then -- 次数 <= 0 并且一次冒险内不刷新,被动可以直接移除 | |
252 | + self.isDel = true | |
253 | + end | |
251 | 254 | if self.count > 0 then |
252 | 255 | self.count = self.count < 999 and self.count - 1 or self.count |
253 | 256 | self.round = self.passiveData.round | ... | ... |