summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-02 02:56:37 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 19:05:52 +0200
commitbd0b0887e57945ead36b7c395c4a6855342398e0 (patch)
tree30f2f4f71d6d6d23f0467ae6454370b5f2ecf942 /rules.js
parent8bfb4a4bb3fdec0ff713be052faa6ab3d7ad2a8c (diff)
downloadtime-of-crisis-bd0b0887e57945ead36b7c395c4a6855342398e0.tar.gz
Spiculum + Plague.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 08ae31f..19f7368 100644
--- a/rules.js
+++ b/rules.js
@@ -3824,13 +3824,21 @@ function goto_assign_hits_on_defender() {
}
function goto_assign_spiculum_hits() {
- if (has_spiculum_hits())
+ if (has_spiculum_hits()) {
game.state = "assign_spiculum_hits"
- else if (is_defender_eliminated())
+ } else if (is_defender_eliminated()) {
// In case Spiculum eliminates defender...
- game.state = "combat_victory"
- else
+ if (game.active_event === EVENT_PLAGUE_OF_CYPRIAN) {
+ log_br()
+ log("Plague B0")
+ game.combat.ahits = 1
+ game.state = "assign_hits_on_attacker"
+ } else {
+ game.state = "combat_victory"
+ }
+ } else {
game.state = "initiate_battle"
+ }
}
states.assign_hits_on_attacker = {