diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-09-10 10:56:42 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-09-10 10:56:42 +0200 |
commit | 451acc2bd382d3c94ef24a4cff4f0d64b271c24d (patch) | |
tree | 943f077892779d60903e429e1e0dbb40976d489b | |
parent | 1b0bd72a8fc736b05031c28d3f19f2d57fdd1d52 (diff) | |
download | plantagenet-451acc2bd382d3c94ef24a4cff4f0d64b271c24d.tar.gz |
fix use of wrong function to remove lord from array
-rw-r--r-- | rules.js | 2 | ||||
-rw-r--r-- | rules.ts | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -5001,7 +5001,7 @@ function log_lord_engage(lord) { } function remove_lord_from_battle(lord) { if (set_has(game.battle.reserves, lord)) { - array_remove(game.battle.reserves, lord); + set_delete(game.battle.reserves, lord); } else { for (let x = 0; x < 6; x++) { @@ -5985,7 +5985,7 @@ function log_lord_engage(lord: Lord) { function remove_lord_from_battle(lord) { if (set_has(game.battle.reserves, lord)) { - array_remove(game.battle.reserves, lord) + set_delete(game.battle.reserves, lord) } else { for (let x = 0; x < 6; x++) { if (game.battle.array[x] === lord) { |