summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-09-09 16:35:58 +0200
committerTor Andersson <tor@ccxvii.net>2024-09-09 16:35:58 +0200
commit1b0bd72a8fc736b05031c28d3f19f2d57fdd1d52 (patch)
tree79cb464ce7948d57fa2306eb86e1028e21d7a4b8
parentcb0cb8fc36758ac4d80e59ad7f6b0051cc7aa98c (diff)
downloadplantagenet-1b0bd72a8fc736b05031c28d3f19f2d57fdd1d52.tar.gz
suspicion: allow targeting enemy lords in reserve.
-rw-r--r--rules.js3
-rw-r--r--rules.ts3
2 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 9f14902..717b050 100644
--- a/rules.js
+++ b/rules.js
@@ -5650,6 +5650,9 @@ states.suspicion_3 = {
for (let lord of game.battle.array)
if (is_enemy_lord(lord) && get_lord_influence(lord) < highest)
gen_action_lord(lord);
+ for (let lord of game.battle.reserves)
+ if (is_enemy_lord(lord) && get_lord_influence(lord) < highest)
+ gen_action_lord(lord);
},
lord(lord) {
push_undo();
diff --git a/rules.ts b/rules.ts
index 311425b..14df1e5 100644
--- a/rules.ts
+++ b/rules.ts
@@ -6697,6 +6697,9 @@ states.suspicion_3 = {
for (let lord of game.battle.array)
if (is_enemy_lord(lord) && get_lord_influence(lord) < highest)
gen_action_lord(lord)
+ for (let lord of game.battle.reserves)
+ if (is_enemy_lord(lord) && get_lord_influence(lord) < highest)
+ gen_action_lord(lord)
},
lord(lord) {
push_undo()