fixes #2690 in Petra AI

This was SVN commit r15574.
This commit is contained in:
mimo 2014-07-27 20:45:40 +00:00
parent 2be86ef79e
commit afa769f873

View File

@ -342,7 +342,7 @@ m.DefenseManager.prototype.checkEvents = function(gameState, events)
if (target.hasClass("Ship")) // TODO integrate ships later need to be sure it is accessible if (target.hasClass("Ship")) // TODO integrate ships later need to be sure it is accessible
continue; continue;
if (target.hasClass("Support") && target.healthLevel() < 0.4) if (target.hasClass("Support") && target.healthLevel() < 0.4 && !target.getMetadata(PlayerID, "transport"))
{ {
this.garrisonUnitForHealing(gameState, target); this.garrisonUnitForHealing(gameState, target);
continue; continue;