diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua index ec6738574c..dbcba6d603 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/FormationManager.lua @@ -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