From a47d882155cf4845529d35d0390c39fd833c0bca Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 12 Oct 2020 14:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=AE=E7=BD=97=E5=9B=9E=E6=98=A5=E6=95=A3?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 69fee1514fe7add42f38661c54f3ef3b2a247e95) --- .../ManagedResources/~Lua/Modules/Map/ShowEnemyInfoPanel.lua | 2 +- .../ManagedResources/~Lua/Modules/Mission/MissionManager.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/ShowEnemyInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Map/ShowEnemyInfoPanel.lua index c8a6137317..3b6c3e18d2 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/ShowEnemyInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/ShowEnemyInfoPanel.lua @@ -99,7 +99,7 @@ function this:BindEvent() --更新精气值 LogGreen(Language[12222]..msg.essenceValue) MapTrialManager.powerValue = msg.essenceValue - + Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量 --召唤Boss if CarbonManager.difficulty == CARBON_TYPE.TRIAL and MapTrialManager.powerValue >= 100 then MapTrialManager.isHaveBoss = true diff --git a/Assets/ManagedResources/~Lua/Modules/Mission/MissionManager.lua b/Assets/ManagedResources/~Lua/Modules/Mission/MissionManager.lua index 1f8007c5d0..2ac9052941 100644 --- a/Assets/ManagedResources/~Lua/Modules/Mission/MissionManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Mission/MissionManager.lua @@ -343,6 +343,7 @@ local directFight = function(showType, eventId, showValues, options) CarbonManager.InitQuickFightData(monsterGroupId, eventId, msg) --更新精气值 MapTrialManager.powerValue = msg.essenceValue + Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量 -- --召唤Boss if CarbonManager.difficulty == CARBON_TYPE.TRIAL and MapTrialManager.powerValue >= 100 then MapTrialManager.isHaveBoss = true @@ -352,7 +353,6 @@ local directFight = function(showType, eventId, showValues, options) end end - Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false) end -- 起名字界面 @@ -466,6 +466,7 @@ function this.EventPointTrigger(eventId) local showValues = string.split(EventPointConfig[eventId].ShowValues, "|") Game.GlobalEvent:DispatchEvent(GameEvent.Event.PointTrigger, showType, eventId, showValues, options) + Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false) -- 根据不同的显示类型执行方法 if funcList[showType] then funcList[showType](showType, eventId, showValues, options)