power change update

jiaoyangna 2020-11-14 14:31:38 +08:00
parent c639ea1c6b
commit ef4c4fccba
1 changed files with 9 additions and 0 deletions

View File

@ -558,6 +558,15 @@ function this:ChangeCurentHeroSkinLive(herodata)
if herodata then
this.curLiveObj=HeroManager.LoadHerolive1(herodata,this.curObj)
else
local allAddProVal = {}
if isUpZhen then
local formationList = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL)
local allHeroTeamAddProVal = HeroManager.GetAllHeroTeamAddProVal(formationList.teamHeroInfos,curHeroData.dynamicId)
allAddProVal = HeroManager.CalculateHeroAllProValList(1, curHeroData.dynamicId, false,nil,nil,true,allHeroTeamAddProVal)
else
allAddProVal = HeroManager.CalculateHeroAllProValList(1,curHeroData.dynamicId,false)
end
this.force.text =allAddProVal[HeroProType.WarPower]
this.curLiveObj=HeroManager.LoadHerolive(curHeroData,this.curObj)
end
this:SetDragView()