[PetraAI] - Wait when all members of an attack-plan are garrisoned.
Reported by: @Langbart Differential revision: https://code.wildfiregames.com/D4936 Refs. #6385 by fixing a part of it (the attack plan). This was SVN commit r27551.
This commit is contained in:
parent
d28145a61a
commit
11c9e33d0f
@ -1303,6 +1303,12 @@ PETRA.AttackPlan.prototype.update = function(gameState, events)
|
||||
if (this.state == "transporting")
|
||||
this.UpdateTransporting(gameState, events);
|
||||
|
||||
if (!this.position)
|
||||
{
|
||||
Engine.ProfileStop();
|
||||
return this.unitCollection.length;
|
||||
}
|
||||
|
||||
if (this.state == "walking" && !this.UpdateWalking(gameState, events))
|
||||
{
|
||||
Engine.ProfileStop();
|
||||
|
Loading…
Reference in New Issue
Block a user