summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 159d8d3..054d134 100644
--- a/rules.js
+++ b/rules.js
@@ -2269,7 +2269,7 @@ function find_minor_heir(owner) {
function find_senior_heir(owner) {
let candidate = null;
for (let b in BLOCKS)
- if (block_owner(b) === owner && block_type(b) === 'heir' && is_block_on_map(b))
+ if (block_owner(b) === owner && block_type(b) === 'heir' && !is_dead(b))
if (!candidate || BLOCKS[b].heir < BLOCKS[candidate].heir)
candidate = b;
return candidate;