From 595487091ba9f35fc4d7b2ed01b7c808154c6f00 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Fri, 25 Aug 2023 18:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E3=80=91=3D=3D=3D?= =?UTF-8?q?=3D=3D=3D=3Dbattlelogic=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/Logic/BattleLogic.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua index 7486682a37..f556910c3c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua @@ -350,7 +350,8 @@ function BattleLogic.CheckBattleLogic() if insertSkillRoleList and #insertSkillRoleList>0 then insertSkillRole=insertSkillRoleList[1] SkillRole =insertSkillRole - table.removebyvalue(insertSkillRoleList,insertSkillRole) + table_removebyvalue(insertSkillRoleList,insertSkillRole) + --table.removebyvalue(insertSkillRoleList,insertSkillRole) insertSkillRole=nil --记录下正常执行行动的英雄的位置,插入英雄行动完,再按照正常顺序执行 lastPos=CurSkillPos[CurCamp] @@ -437,7 +438,8 @@ function BattleLogic.CheckHaveInsertRole() if insertSkillRoleList and #insertSkillRoleList>0 then insertSkillRole=insertSkillRoleList[1] local SkillRole=insertSkillRole - table.removebyvalue(insertSkillRoleList,insertSkillRole) + --table.removebyvalue(insertSkillRoleList,insertSkillRole) + table_removebyvalue(insertSkillRoleList,insertSkillRole) insertSkillRole=nil -- 如果找不到下一个人,直接交换阵营 if not SkillRole then