mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Update unitCollection in attackPlan
This commit is contained in:
parent
86289a89fd
commit
be03605eac
1 changed files with 4 additions and 0 deletions
|
|
@ -2183,6 +2183,10 @@ AttackPlan.prototype.checkEvents = function(gameState, events)
|
|||
this.target = undefined;
|
||||
}
|
||||
|
||||
this.unitCollection = gameState.getOwnUnits().filter(
|
||||
filters.byMetadata(PlayerID, "plan", this.name));
|
||||
this.unitCollection.registerUpdates();
|
||||
|
||||
if (!this.overseas || this.state !== AttackPlan.STATE_UNEXECUTED)
|
||||
return;
|
||||
// let's check if an enemy has built a structure at our access
|
||||
|
|
|
|||
Loading…
Reference in a new issue