summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-02 10:32:24 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitc08b50f70493e8c837ea58ecfdd6d0eb42f507aa (patch)
tree75a1428d7243f7231681c8fe40b34c081c6a7824 /play.js
parent0ef8f84e4b9206806e39d105f8a748d6215a968d (diff)
downloadnevsky-c08b50f70493e8c837ea58ecfdd6d0eb42f507aa.tar.gz
Fix Ransom + Remove after battle.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
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