From 43716efb8d552c64544b302a0d1a6d786676cb9c Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Thu, 16 Apr 2020 17:45:52 +0800 Subject: [PATCH] buff 清除层数 --- src/adv/AdvBuff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adv/AdvBuff.lua b/src/adv/AdvBuff.lua index d134fc7..fdb9487 100644 --- a/src/adv/AdvBuff.lua +++ b/src/adv/AdvBuff.lua @@ -237,7 +237,7 @@ local BuffFactory = { _Buff._init = function(self) for _, buff in ipairs(self.owner.buffs) do -- 挂上就清除一下子 if not buff.isDel and self:canEffect(buff.id) and not self.isDel then - if not buff.isDel and not self.isDel then + while not buff.isDel and not self.isDel do self:effect() buff:uncover() end -- libgit2 0.21.2