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

dev_chengFeng
ZhangBiao 2020-10-12 16:08:13 +08:00
parent aec2eb929c
commit 767ac32ee1
3 changed files with 4 additions and 0 deletions

View File

@ -599,6 +599,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,6 +79,7 @@ function GeneralPopup:BindEvent()
end
--返回按钮
Util.AddClick(this.backBtn,function()
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)
--使用按钮
@ -73,6 +74,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)