Commit 43716efb8d552c64544b302a0d1a6d786676cb9c
1 parent
7cd50d19
buff 清除层数
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/adv/AdvBuff.lua
@@ -237,7 +237,7 @@ local BuffFactory = { | @@ -237,7 +237,7 @@ local BuffFactory = { | ||
237 | _Buff._init = function(self) | 237 | _Buff._init = function(self) |
238 | for _, buff in ipairs(self.owner.buffs) do -- 挂上就清除一下子 | 238 | for _, buff in ipairs(self.owner.buffs) do -- 挂上就清除一下子 |
239 | if not buff.isDel and self:canEffect(buff.id) and not self.isDel then | 239 | if not buff.isDel and self:canEffect(buff.id) and not self.isDel then |
240 | - if not buff.isDel and not self.isDel then | 240 | + while not buff.isDel and not self.isDel do |
241 | self:effect() | 241 | self:effect() |
242 | buff:uncover() | 242 | buff:uncover() |
243 | end | 243 | end |