summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2024-01-17 09:52:18 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2024-01-17 09:52:18 +0100
commit7e84906c2ce9286c491a91b91e483fe9bca2be84 (patch)
tree0ae974f5f94cedc1b778271af26680019fda5143 /rules.js
parent09182d61944b09f79c05db4534f51e2d3cc90550 (diff)
downloadplantagenet-7e84906c2ce9286c491a91b91e483fe9bca2be84.tar.gz
Fuzzer fix
more clear_undo() missings
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 3994860..2d1bbed 100644
--- a/rules.js
+++ b/rules.js
@@ -3400,10 +3400,11 @@ states.dubious_clarence = {
spend1: add_influence_check_modifier_1,
spend3: add_influence_check_modifier_2,
check() {
+ clear_undo()
let results = do_influence_check()
log(`Attempt to disband Clarence ${results.success ? "Successful" : "Failed"}: (${range(results.rating)}) ${results.success ? HIT[results.roll] : MISS[results.roll]}`)
- if (results.success) {
+ if (results.success) {
disband_lord(LORD_CLARENCE, false)
end_immediate_event()
} else {
@@ -4729,6 +4730,7 @@ states.levy_muster_lord_attempt = {
spend1: add_influence_check_modifier_1,
spend3: add_influence_check_modifier_2,
check() {
+ clear_undo()
let results = do_influence_check()
log(`Attempt to levy L${game.what} ${results.success ? "Successful" : "Failed"}: (${range(results.rating)}) ${results.success ? HIT[results.roll] : MISS[results.roll]}`)
@@ -5657,6 +5659,7 @@ states.levy_muster_vassal = {
spend1: add_influence_check_modifier_1,
spend3: add_influence_check_modifier_2,
check() {
+ clear_undo()
let results = do_influence_check()
if (lord_has_capability(game.who, AOW_LANCASTER_TWO_ROSES)) {
@@ -7060,6 +7063,7 @@ states.heralds_attempt = {
spend1: add_influence_check_modifier_1,
spend3: add_influence_check_modifier_2,
check() {
+ clear_undo()
let results = do_influence_check()
log(`Attempt to shift L${game.what} ${results.success ? "Successful" : "Failed"}: (${range(results.rating)}) ${results.success ? HIT[results.roll] : MISS[results.roll]}`)