diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 5082fc08da..28a7b24c67 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -410,8 +410,9 @@ local levelList={} --刷新boss信息显示 function this.RefreshBossInfo() levelList={} + local curFight=FightPointPassManager.curOpenFight - --LogError("curfight==========================================================="..curFight) + LogError("刷星boss显示 curfight==========================================================="..curFight) for k,v in ConfigPairs(fightLevelConfig) do if k>=curFight then if v.OpenRule and (v.OpenRule[1][1]==9 or v.OpenRule[1][1]==0 )and FightPointPassManager.soldierLayerId>=v.OpenRule[1][2] then @@ -747,11 +748,12 @@ function FightPointPassMainPanel:AddListener() Game.GlobalEvent:AddEvent(GameEvent.Player.OnPlayerLvChange, this.RefreshOpenTips) Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, this.refreshVipTask) Game.GlobalEvent:AddEvent(GameEvent.JumpServerHeightLadder.UpdateWordLv, this.UpdateWordLv) - + Game.GlobalEvent:AddEvent(GameEvent.UI.OnOpen, this.OnUIOpen) Game.GlobalEvent:AddEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone) Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo) Game.GlobalEvent:AddEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo) + Game.GlobalEvent:AddEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo) end --移除事件监听(用于子类重写) @@ -773,6 +775,7 @@ function FightPointPassMainPanel:RemoveListener() Game.GlobalEvent:RemoveEvent(GameEvent.Guide.FuncGuideDone, this.OnFuncGuideDone) Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshSoliderInfoWindow, this.RefreshSoliderInfo) Game.GlobalEvent:RemoveEvent(GameEvent.Solider.RefreshLvInfo, this.RefreshLvInfo) + Game.GlobalEvent:RemoveEvent(GameEvent.Mission.OnOpenFight, this.RefreshBossInfo) end --界面打开时调用(用于子类重写) diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassManager.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassManager.lua index 63d68f22ec..671e705078 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassManager.lua @@ -178,7 +178,7 @@ function this.RefreshFightId(msg) Game.GlobalEvent:DispatchEvent(GameEvent.Mission.OnPassFight, oldFight) -- 服务器更新关卡状态 - LogError("服务器更新关卡状态---------------------------------------------------") + LogError("服务器更新关卡状态---------------------------------------------------".. msg.fightId) this.curOpenFight = msg.fightId this.curFightState = msg.state