diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-01-17 09:52:18 +0100 |
---|---|---|
committer | teisuru <31881306+teisuru@users.noreply.github.com> | 2024-01-17 09:52:18 +0100 |
commit | 7e84906c2ce9286c491a91b91e483fe9bca2be84 (patch) | |
tree | 0ae974f5f94cedc1b778271af26680019fda5143 | |
parent | 09182d61944b09f79c05db4534f51e2d3cc90550 (diff) | |
download | plantagenet-7e84906c2ce9286c491a91b91e483fe9bca2be84.tar.gz |
Fuzzer fix
more clear_undo() missings
-rw-r--r-- | rules.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]}`) |