summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-06 19:27:05 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-06 19:27:05 +0200
commit1f09eedb6aa590afb310cf215f75bf7a4418ee88 (patch)
treefaf614148b45d40acb1d8d123b1d8fa33056ab98
parent5eeeebbaf5aa9ac6b629cfe9665a2cfa22a27806 (diff)
downloadplantagenet-1f09eedb6aa590afb310cf215f75bf7a4418ee88.tar.gz
fix dorset event
-rw-r--r--rules.js8
-rw-r--r--rules.ts7
2 files changed, 2 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index 11b97f5..91f9bb6 100644
--- a/rules.js
+++ b/rules.js
@@ -3913,8 +3913,6 @@ function fail_tax(who) {
}
// === 4.6.4 ACTION: PARLEY ===
function has_free_parley_levy() {
- if (game.command === LORD_DEVON && get_lord_locale(LORD_DEVON) === LOC_EXETER && is_event_in_play(EVENT_YORK_DORSET))
- return true;
if (game.levy_flags.jack_cade > 0)
return true;
if (game.levy_flags.my_crown_is_in_my_heart > 0)
@@ -4075,11 +4073,7 @@ function end_parley(success) {
delete game.parley;
// Track use of parley capabilities / events.
if (is_levy_phase()) {
- if (game.command === LORD_DEVON && get_lord_locale(LORD_DEVON) === LOC_EXETER && is_event_in_play(EVENT_YORK_DORSET)) {
- logevent(EVENT_YORK_DORSET);
- ++game.actions;
- }
- else if (game.levy_flags.jack_cade > 0) {
+ if (game.levy_flags.jack_cade > 0) {
// Jack Cade: free action, zero influence cost, and success
logevent(EVENT_YORK_JACK_CADE);
--game.levy_flags.jack_cade;
diff --git a/rules.ts b/rules.ts
index c580ca4..4204a70 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4725,8 +4725,6 @@ function fail_tax(who: Lord) {
// === 4.6.4 ACTION: PARLEY ===
function has_free_parley_levy() {
- if (game.command === LORD_DEVON && get_lord_locale(LORD_DEVON) === LOC_EXETER && is_event_in_play(EVENT_YORK_DORSET))
- return true
if (game.levy_flags.jack_cade > 0)
return true
if (game.levy_flags.my_crown_is_in_my_heart > 0)
@@ -4926,10 +4924,7 @@ function end_parley(success: boolean) {
// Track use of parley capabilities / events.
if (is_levy_phase()) {
- if (game.command === LORD_DEVON && get_lord_locale(LORD_DEVON) === LOC_EXETER && is_event_in_play(EVENT_YORK_DORSET)) {
- logevent(EVENT_YORK_DORSET)
- ++game.actions
- } else if (game.levy_flags.jack_cade > 0) {
+ if (game.levy_flags.jack_cade > 0) {
// Jack Cade: free action, zero influence cost, and success
logevent(EVENT_YORK_JACK_CADE)
--game.levy_flags.jack_cade