【测试战斗】修复添加属性被动时报错
parent
f091914b4f
commit
1568e2f288
|
@ -86,6 +86,7 @@ function this.PrintBattleTable(tb)
|
||||||
return indent_str
|
return indent_str
|
||||||
end
|
end
|
||||||
--
|
--
|
||||||
|
this.logList = {}
|
||||||
function this.Init(fightdata, userdata)
|
function this.Init(fightdata, userdata)
|
||||||
this.timestamp = Random.GetSeed()
|
this.timestamp = Random.GetSeed()
|
||||||
this.fightdata = fightdata
|
this.fightdata = fightdata
|
||||||
|
|
|
@ -65,13 +65,14 @@ function BattleLogic.Init(data, _userData, maxRound)
|
||||||
BattleLogic.BuffMgr:Init()
|
BattleLogic.BuffMgr:Init()
|
||||||
BattleLogic.IsEnd = false
|
BattleLogic.IsEnd = false
|
||||||
BattleLogic.Result = -1
|
BattleLogic.Result = -1
|
||||||
|
-- 日志管理放到前面初始化
|
||||||
|
BattleLogManager.Init(fightData, userData)
|
||||||
|
|
||||||
MonsterManager.Init()
|
MonsterManager.Init()
|
||||||
RoleManager.Init()
|
RoleManager.Init()
|
||||||
SkillManager.Init()
|
SkillManager.Init()
|
||||||
OutDataManager.Init(fightData)
|
OutDataManager.Init(fightData)
|
||||||
PassiveManager.Init()
|
PassiveManager.Init()
|
||||||
BattleLogManager.Init(fightData, userData)
|
|
||||||
|
|
||||||
-- 监听英雄受到治疗
|
-- 监听英雄受到治疗
|
||||||
BattleLogic.Event:AddEvent(BattleEventName.RoleBeTreated,function (castRole, realTreat, treat)
|
BattleLogic.Event:AddEvent(BattleEventName.RoleBeTreated,function (castRole, realTreat, treat)
|
||||||
|
|
Loading…
Reference in New Issue