回春散手动使用次数不刷新修复
parent
bf37ff8cea
commit
252fec5bbd
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue