Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/ai/petra/attackPlan.js
Context not available. | |||||
let ent = gameState.getEntityById(this.unitCollUpdateArray[check]); | let ent = gameState.getEntityById(this.unitCollUpdateArray[check]); | ||||
if (!ent || !ent.position()) | if (!ent || !ent.position()) | ||||
continue; | continue; | ||||
// Do not reaffect units which have reacted to an attack in that same turn | // Do not reassign units which have reacted to an attack in that same turn | ||||
if (ent.getMetadata(PlayerID, "lastAttackPlanUpdateTime") == time) | if (ent.getMetadata(PlayerID, "lastAttackPlanUpdateTime") == time) | ||||
continue; | continue; | ||||
Context not available. |
Wildfire Games · Phabricator