From 738a57f9f49db907318dc36f8e815bdf90a8bfc5 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Fri, 2 Jun 2023 11:53:55 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/team/battle_team.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/app/module/battle/team/battle_team.lua b/lua/app/module/battle/team/battle_team.lua index e3176375..3bcfd29b 100644 --- a/lua/app/module/battle/team/battle_team.lua +++ b/lua/app/module/battle/team/battle_team.lua @@ -409,6 +409,9 @@ function BattleTeam:doBuffWork() target = buffEffect.target end BattleBuffHandle.doBuffWork(target, buffEffect) + if not self.buffList[i] then -- dot伤害致死后,buff已经全部移除 + break + end if buffEffect.round <= 0 then self:updateBuffState(buffEffect.buff, -1) table.remove(self.buffList, i)