diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-07 17:44:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | d5e7a99e4efc3587d81a78da57417c1ec7db604f (patch) | |
tree | 763c654838a261206a6f2f5407a0e1b095be4c9c | |
parent | dea6d3119e78bdd9cb459a1e56c1d71cfb4be747 (diff) | |
download | plantagenet-d5e7a99e4efc3587d81a78da57417c1ec7db604f.tar.gz |
oops! display battle/non-battle vassal confusion
-rw-r--r-- | play.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1106,10 +1106,10 @@ function update_forces(parent, forces, lord_ix, routed) { if (i === VASSAL) { for_each_vassal_with_lord(lord_ix, v => { if (view.battle) { - if (routed === false) + if (set_has(view.battle.routed_vassals, v) === routed) add_vassal(parent, v, lord_ix, routed) } else { - if (set_has(view.battle.routed_vassals, v) === routed) + if (routed === false) add_vassal(parent, v, lord_ix, routed) } }) |