summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-22 17:07:11 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit0da20d40dd8d8d8f0ffad3c3260062ad788046e9 (patch)
tree7221a6f8ad0a27f53254b81eac6db3a66d3e840f /rules.js
parentd5dcddaba64662068453dc7e9e37e91b49ef92ce (diff)
downloadnevsky-0da20d40dd8d8d8f0ffad3c3260062ad788046e9.tar.gz
Don't ravage ravaged locales with Mindaugas events.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 6c27d32..d329888 100644
--- a/rules.js
+++ b/rules.js
@@ -2096,7 +2096,7 @@ states.death_of_the_pope = {
view.prompt = "Death of the Pope: Discard William of Modena."
gen_action_card(AOW_TEUTONIC_WILLIAM_OF_MODENA)
},
- card(card) {
+ card(_) {
discard_global_capability(AOW_TEUTONIC_WILLIAM_OF_MODENA)
end_immediate_event()
},
@@ -2251,7 +2251,7 @@ const RUSSIAN_MINDAUGAS = [
function goto_teutonic_event_mindaugas() {
game.state = "teutonic_mindaugas"
for (let loc of TEUTONIC_MINDAUGAS)
- if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc))
+ if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc) && !has_ravaged_marker(loc))
return
end_immediate_event()
}
@@ -2259,7 +2259,7 @@ function goto_teutonic_event_mindaugas() {
function goto_russian_event_mindaugas() {
game.state = "russian_mindaugas"
for (let loc of RUSSIAN_MINDAUGAS)
- if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc))
+ if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc) && !has_ravaged_marker(loc))
return
end_immediate_event()
}
@@ -2269,7 +2269,7 @@ states.teutonic_mindaugas = {
prompt() {
view.prompt = "Mindaugas: Place Ravaged near Ostrov."
for (let loc of TEUTONIC_MINDAUGAS)
- if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc))
+ if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc) && !has_ravaged_marker(loc))
gen_action_locale(loc)
},
locale(loc) {
@@ -2284,7 +2284,7 @@ states.russian_mindaugas = {
prompt() {
view.prompt = "Mindaugas: Place Ravaged near Rositten."
for (let loc of RUSSIAN_MINDAUGAS)
- if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc))
+ if (!has_enemy_lord(loc) && !is_enemy_stronghold(loc) && !has_ravaged_marker(loc))
gen_action_locale(loc)
},
locale(loc) {