好友切磋回合结束按照总伤害值和治疗值判断输赢
parent
728042f1f9
commit
70697ee6df
|
|
@ -9,7 +9,7 @@ local CurCamp = 0
|
||||||
local CurSkillPos = {}
|
local CurSkillPos = {}
|
||||||
local PosList = {}
|
local PosList = {}
|
||||||
local curFrame
|
local curFrame
|
||||||
BattleLogic.Type = 0 --1 故事副本 2 地图探索 3 竞技场 4 秘境boss 5 解锁秘境 6 公会战 7 血战 8 兽潮 9巅峰战
|
BattleLogic.Type = -1 -- 0 切磋 1 故事副本 2 地图探索 3 竞技场 4 秘境boss 5 解锁秘境 6 公会战 7 血战 8 兽潮 9巅峰战
|
||||||
BattleLogic.IsEnd = false
|
BattleLogic.IsEnd = false
|
||||||
BattleLogic.Result = -1
|
BattleLogic.Result = -1
|
||||||
BattleLogic.Event = BattleEvent.New()
|
BattleLogic.Event = BattleEvent.New()
|
||||||
|
|
@ -310,7 +310,7 @@ function BattleLogic.Update()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if CurRound > MaxRound then
|
if CurRound > MaxRound then
|
||||||
if BattleLogic.Type==9 then
|
if BattleLogic.Type==9 or BattleLogic.Type== 0 then
|
||||||
LogError("我方总输出"..allHeroDamage.."敌方总输出:"..allEnemyDamage)
|
LogError("我方总输出"..allHeroDamage.."敌方总输出:"..allEnemyDamage)
|
||||||
if allHeroDamage>allEnemyDamage then
|
if allHeroDamage>allEnemyDamage then
|
||||||
LogError("争霸赛我方胜")
|
LogError("争霸赛我方胜")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue