summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-03-26 16:22:48 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-03-26 16:22:48 +0100
commitf296767321abb7b586a874726f9de1edb1ae00b7 (patch)
treec07bbef0107d88d856d671bf7c57448496afbeef /rules.js
parentf6e51dc5f8e9c1e44cc79fb45229d87763539807 (diff)
downloadplantagenet-f296767321abb7b586a874726f9de1edb1ae00b7.tar.gz
bugfix blocked ford & automatic parley
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js23
1 files changed, 6 insertions, 17 deletions
diff --git a/rules.js b/rules.js
index 9da4c13..eff10dd 100644
--- a/rules.js
+++ b/rules.js
@@ -5748,7 +5748,7 @@ function do_influence_check() {
let roll = roll_die()
let success
- if (roll === 1)
+ if (roll === 1 || rating === 6)
success = true
else if (roll === 6)
success = false
@@ -6597,7 +6597,6 @@ states.blocked_ford = {
goto_battle()
},
pass() {
- set_active_enemy()
goto_exiles()
},
}
@@ -8444,7 +8443,6 @@ states.defender_events = {
inactive: "Defender Events",
prompt() {
view.prompt = "Defender may play Events."
-
prompt_battle_events()
// defender only events
@@ -8497,6 +8495,11 @@ states.ravine = {
gen_action_lord(lord)
}
}
+ for (let lord of game.battle.reserves) {
+ if (is_enemy_lord(lord)) {
+ gen_action_lord(lord)
+ }
+ }
},
lord(lord) {
push_undo()
@@ -8507,7 +8510,6 @@ states.ravine = {
},
}
-
// === EVENT : CALTROPS ===
states.caltrops = {
@@ -8744,19 +8746,6 @@ function end_for_trust_not_him() {
resume_battle_events()
}
-// === BATTLE: RAVINE ===
-
-states.ravine = {
- inactive: "Ravine",
- prompt() {
- view.prompt = "Ravine: Select an enemy lord : he is ignored Round 1"
- view.actions.done = 1
- },
- done() {
- end_defender_events()
- },
-}
-
// === BATTLE: FLEE ===
function goto_battle_rounds() {