mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:24:16 +00:00
Update unitCollection in attackPlan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user