【bug】======转换职业后卸下魂宝

dev_chengFeng
wangzhenxing 2022-04-06 14:15:36 +08:00
parent f442f6df70
commit 50c78ef888
2 changed files with 11 additions and 1 deletions

View File

@ -3909,6 +3909,13 @@ function this.RemoveTreasure(dId, jId)
end
end
function this.ClearHeroAllJewels(did)
if heroDatas[did] then
heroDatas[did].jewels={}
end
end
--根据界面数据加载动态立绘
function this.LoadHerolive(_heroData, _objPoint)
--TODO:动态加载立绘

View File

@ -3286,7 +3286,7 @@ function this.HeroRetureEvent(heroId, func, indexType)
end)
end
--请求英雄回溯
--改变英雄阵营
function this.ChangeHeroPro(heroId,pro,func)
local data = HeroInfoProto_pb.GodDevilHeroSelectPropRequest()
LogError("HeroRetureEvent "..heroId)
@ -3297,6 +3297,9 @@ function this.ChangeHeroPro(heroId,pro,func)
--local data = buffer:DataByte()
HeroManager.SetHeroPro(heroId,pro)
PopupTipPanel.ShowTip("阵营转换成功")
HeroManager.ClearHeroAllJewels(heroId)
--HeroManager.CompareWarPower1(heroId)
HeroPropManager.SetDirtyByType(heroId, Hero_Prop_Type.EquipTreasure)
if func then
func()
end