From 451acc2bd382d3c94ef24a4cff4f0d64b271c24d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 10 Sep 2024 10:56:42 +0200 Subject: fix use of wrong function to remove lord from array --- rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.ts') diff --git a/rules.ts b/rules.ts index 14df1e5..006a8f8 100644 --- a/rules.ts +++ b/rules.ts @@ -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) { -- cgit v1.2.3