The Draw total war can be avoided
Issue #94
resolved
If the Illian player is in a team with other players, the total war caused by the Draw can be circumvented because the other players in the Illian team are not in total war.
Comments (3)
-
reporter -
reporter if iProjectType == gc.getInfoTypeForString('PROJECT_THE_DRAW'): iTeam = pPlayer.getTeam() eTeam = gc.getTeam(iTeam) for iLoopPlayer in range(gc.getMAX_PLAYERS()): pLoopPlayer = gc.getPlayer(iLoopPlayer) if pLoopPlayer.isAlive() and if pLoopPlayer.getTeam() == iTeam: pLoopPlayer.changeNoDiplomacyWithEnemies(1) for iLoopTeam in range(gc.getMAX_TEAMS()): if iLoopTeam != iTeam: if iLoopTeam != gc.getPlayer(gc.getBARBARIAN_PLAYER()).getTeam(): eLoopTeam = gc.getTeam(iLoopTeam) if eLoopTeam.isAlive(): if not eLoopTeam.isAVassal(): eTeam.declareWar(iLoopTeam, false, WarPlanTypes.WARPLAN_LIMITED)
-
reporter - changed status to resolved
- Log in to comment
In CvEventManager, onProjectBuilt, all players in the same team as the Illian should get a changeNoDiplomacyWithEnemies(1) too.
This bug along with the solution should be reported to MNAI.