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