From 35305a02be6ca8a92a1c1ae0c28929cdae009fc6 Mon Sep 17 00:00:00 2001 From: suhongyang <1609423485@qq.com> Date: Sat, 29 Jun 2019 14:34:48 +0800 Subject: [PATCH] 被动次数是否刷新 --- src/adv/AdvPassive.lua | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/src/adv/AdvPassive.lua b/src/adv/AdvPassive.lua index 839cc36..45e5246 100644 --- a/src/adv/AdvPassive.lua +++ b/src/adv/AdvPassive.lua @@ -248,6 +248,9 @@ function Passive:effect(trigger) self["effect" .. effType](self, effValue, trigger) end end + if self.count <= 0 and self.passiveData.refresh == 1 then -- 次数 <= 0 并且一次冒险内不刷新,被动可以直接移除 + self.isDel = true + end if self.count > 0 then self.count = self.count < 999 and self.count - 1 or self.count self.round = self.passiveData.round -- libgit2 0.21.2