summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-01 21:40:06 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-01 21:40:06 +0200
commit49981ea36f5b37325cc42f82ac34dde3e241ed57 (patch)
tree4e016cd586cbd14a411a345ed6e6cbb734b6316f /rules.js
parent45cc295ecbbf5f1562897ab32e68fb3763ba3c86 (diff)
downloadnevsky-49981ea36f5b37325cc42f82ac34dde3e241ed57.tar.gz
Fix bug with Warrior Monks and Garrison.
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 04f6c67..91273ed 100644
--- a/rules.js
+++ b/rules.js
@@ -9109,7 +9109,7 @@ function remove_serf(lord) {
}
function use_warrior_monks(lord, type) {
- if (type === KNIGHTS) {
+ if (type === KNIGHTS && lord !== GARRISON) {
let bit = 1 << lord
if (game.battle.warrior_monks & bit) {
game.battle.warrior_monks ^= bit