From 1b06ae40c9a581c6e4cabd58ca201b1ea64fca29 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 15 Mar 2021 17:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90battlelogic=E3=80=91=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua index def6731c2f..7e167e96db 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/BattleLogic.lua @@ -104,6 +104,7 @@ end -- 检测先手阵营 function BattleLogic.CheckFirstCamp() + Log("检测先后手") -- 默认我方先手 BattleLogic.FirstCamp = 0 -- 数据不存在时,兼容老战斗数据 @@ -226,6 +227,7 @@ function BattleLogic.TurnRound(debugTurn) SkillManager.CheckMonsterSkill(function() CurRound = CurRound + 1 CurCamp = BattleLogic.FirstCamp -- 判断先手阵营 + Log("BattleLogic.230:"..tostring(CurCamp)) CurSkillPos[0] = 0 CurSkillPos[1] = 0 -- @@ -257,6 +259,7 @@ function BattleLogic.TurnRound(debugTurn) BattleLogic.WaitForTrigger(0.2,function() -- 切换阵营 CurCamp = (CurCamp + 1) % 2 + Log("BattleLogic.260:"..tostring(CurCamp)) BattleLogic.CheckBattleLogic() end) end)