From c08b50f70493e8c837ea58ecfdd6d0eb42f507aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 2 Feb 2023 10:32:24 +0100 Subject: Fix Ransom + Remove after battle. --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index b977b6f..29011f8 100644 --- a/play.js +++ b/play.js @@ -1704,7 +1704,7 @@ function update_battle() { } function is_lord_in_battle(lord) { - if (view.battle) { + if (view.battle && view.battle.array) { for (let i = 0; i < 12; ++i) if (view.battle.array[i] === lord) return true -- cgit v1.2.3