【无尽副本】修复报错

dev_chengFeng
gaoxin 2021-09-27 15:35:48 +08:00
parent 6c50cdfd09
commit 34ade2489d
2 changed files with 3 additions and 3 deletions

View File

@ -1024,8 +1024,8 @@ function this.GetMapTeamPower()
Log("heroData is not exist! error Did:" .. curFormation[i].heroId)
return
end
if curFormation[i].allProVal[2] > 0 then
local hp = FormationManager.GetFormationHeroHp(FormationTypeDef.FORMATION_ENDLESS_MAP, curFormation[i].heroId)
if hp and hp > 0 then
powerNum = powerNum + HeroPowerManager.GetHeroPower(heroData.dynamicId)
end
end

View File

@ -69,7 +69,7 @@ end
function this.Init(pos,num)
local u, v = Map_Pos2UV(pos)
--(角色身上的数据, 主要是位置信息)
this.leaderMapData = TileMapView.GetMapData()
this.leaderMapData = TileMapView.GetMapData():GetMapData(u, v)
MapManager.curMapBornPos = Map_UV2Pos(this.leaderMapData.u, this.leaderMapData.v)
-- LogRed("NUM"..num)