mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
fix a rare case where a Petra attack would not know its target is already destroyed
This was SVN commit r15749.
This commit is contained in:
@@ -1502,6 +1502,8 @@ m.AttackPlan.prototype.update = function(gameState, events)
|
||||
continue;
|
||||
if (accessIndex !== gameState.ai.accessibility.getAccessValue(attack.targetPos))
|
||||
continue;
|
||||
if (!attack.target || !gameState.getEntityById(attack.target.id()))
|
||||
continue;
|
||||
this.target = attack.target;
|
||||
this.targetPlayer = attack.targetPlayer;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user