向后端发送主线战力变化 修改
parent
ce7c70820b
commit
f3e4b9f951
|
@ -216,6 +216,7 @@ function this.CheckHeroIdExist(heroId)
|
|||
end
|
||||
|
||||
function this.UserPowerChanged()
|
||||
|
||||
local maxPower, targetTeamId = 0
|
||||
for _, teamInfo in pairs(this.formationList) do
|
||||
if #teamInfo.teamHeroInfos > 0 then
|
||||
|
@ -227,7 +228,7 @@ function this.UserPowerChanged()
|
|||
end
|
||||
if maxPower > PlayerManager.maxForce then
|
||||
Log(Language[10684])
|
||||
NetManager.RequestUserForceChange(targetTeamId)
|
||||
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)--targetTeamId
|
||||
PlayerManager.maxForce = maxPower
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue