【battlelogic】增加log

dev_chengFeng
ZhangBiao 2021-03-15 17:11:52 +08:00
parent 86fdb9395b
commit 1b06ae40c9
1 changed files with 3 additions and 0 deletions

View File

@ -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)