From: <dil...@us...> - 2013-10-07 19:27:50
|
Revision: 6434 http://sourceforge.net/p/freeorion/code/6434 Author: dilvish-fo Date: 2013-10-07 19:27:47 +0000 (Mon, 07 Oct 2013) Log Message: ----------- AI military tweak Modified Paths: -------------- trunk/FreeOrion/default/AI/AIFleetMission.py Modified: trunk/FreeOrion/default/AI/AIFleetMission.py =================================================================== --- trunk/FreeOrion/default/AI/AIFleetMission.py 2013-10-07 18:37:19 UTC (rev 6433) +++ trunk/FreeOrion/default/AI/AIFleetMission.py 2013-10-07 19:27:47 UTC (rev 6434) @@ -379,7 +379,7 @@ #TODO: evaluate releasing a smaller portion or none of the ships sysStatus = foAI.foAIstate.systemStatus.setdefault(last_sys_target, {}) newFleets=[] - threat_present = (sysStatus.get('totalThreat', 0) != 0) and (sysStatus.get('neighborThreat', 0) != 0) + threat_present = (sysStatus.get('totalThreat', 0) != 0) or (sysStatus.get('neighborThreat', 0) != 0) target_system = universe.getSystem(last_sys_target) if (not threat_present) and target_system: for pid in target_system.planetIDs: |