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,6 +248,9 @@ function Passive:effect(trigger) | ||
248 | self["effect" .. effType](self, effValue, trigger) | 248 | self["effect" .. effType](self, effValue, trigger) |
249 | end | 249 | end |
250 | end | 250 | end |
251 | + if self.count <= 0 and self.passiveData.refresh == 1 then -- 次数 <= 0 并且一次冒险内不刷新,被动可以直接移除 | ||
252 | + self.isDel = true | ||
253 | + end | ||
251 | if self.count > 0 then | 254 | if self.count > 0 then |
252 | self.count = self.count < 999 and self.count - 1 or self.count | 255 | self.count = self.count < 999 and self.count - 1 or self.count |
253 | self.round = self.passiveData.round | 256 | self.round = self.passiveData.round |