diff options
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -6716,11 +6716,13 @@ states.final_charge = { // === BATTLE CAPABILITY: VANGUARD === function is_vanguard_in_battle() { - for (let p of battle_strike_positions) { - let lord = game.battle.array[p] - if (lord !== NOBODY) { - if (lord_has_capability(lord, AOW_YORK_VANGUARD)) - return true + for (let eng of game.battle.engagements) { + for (let p of eng) { + let lord = game.battle.array[p] + if (lord !== NOBODY) { + if (lord_has_capability(lord, AOW_YORK_VANGUARD)) + return true + } } } return false |