向后端发送主线战力变化 修改

zhangqiang 2020-08-15 20:10:47 +08:00
parent ce7c70820b
commit f3e4b9f951
1 changed files with 2 additions and 1 deletions

View File

@ -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