power change update
parent
c639ea1c6b
commit
ef4c4fccba
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue