回春散手动使用次数不刷新修复

ZhangBiao 2020-10-12 16:08:13 +08:00
parent bf37ff8cea
commit 252fec5bbd
3 changed files with 4 additions and 1 deletions

View File

@ -600,6 +600,7 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
MapManager.addHpCount=MapManager.addHpCount+1
PopupTipPanel.ShowTip(string.format(Language[11265],itemConfig[itemId].Name))
Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)--打完刷新血量
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
end)
end)
end

View File

@ -79,7 +79,7 @@ function GeneralPopup:BindEvent()
end
--返回按钮
Util.AddClick(this.backBtn,function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
self:ClosePanel()
end)
end

View File

@ -38,6 +38,7 @@ end
function this:BindEvent()
--取消按钮
Util.AddClick(this.cancelBtn,function()
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
parent:ClosePanel()
end)
--使用按钮
@ -74,6 +75,7 @@ function this:BindEvent()
curHeroHp=10000
end
MapTrialManager.SetHeroHp({curHeroHp},selectHeroDid)
Game.GlobalEvent:DispatchEvent(GameEvent.Map.RefreshHeroHp,false,nil,false)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
end)
end)