summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index c104d37..c533c9d 100644
--- a/rules.js
+++ b/rules.js
@@ -9,6 +9,8 @@ Special card rules implemented:
place_2_blue
place_2_red
+ place_2_blue_if_dice
+ place_2_red_if_dice
remove_after_screen
suffer_1_less_1_max
suffer_1_less
@@ -134,7 +136,7 @@ exports.view = function (state, player) {
view.prompt = game.victory
} else if (player !== game.active) {
let inactive = states[game.state].inactive || game.state
- view.prompt = `Waiting for ${player_name()} to ${inactive}.`
+ view.prompt = `Waiting for ${player_name(player_index())} to ${inactive}.`
} else {
view.actions = {}
states[game.state].prompt()
@@ -981,6 +983,17 @@ function goto_roll_phase() {
game.place_max[BLUE] = 2
if (card_has_rule(c, "place_2_red"))
game.place_max[RED] = 2
+ if (card_has_rule(c, "place_2_red_if_dice") && has_any_dice_on_card(c))
+ game.place_max[RED] = 2
+
+ /*
+ // NOT USED (YET)
+ if (card_has_rule(c, "place_2_dkblue")) game.place_max[DKBLUE] = 2
+ if (card_has_rule(c, "place_2_pink")) game.place_max[PINK] = 2
+ if (card_has_rule(c, "place_2_blue_if_dice") && has_any_dice_on_card(c)) game.place_max[BLUE] = 2
+ if (card_has_rule(c, "place_2_dkblue_if_dice") && has_any_dice_on_card(c)) game.place_max[DKBLUE] = 2
+ if (card_has_rule(c, "place_2_pink_if_dice") && has_any_dice_on_card(c)) game.place_max[PINK] = 2
+ */
}
}
@@ -1787,6 +1800,7 @@ function goto_absorb(c, a) {
default:
throw new Error("invalid absorb effect: " + a.effect)
case "When target suffers Hits, this card suffers them instead.":
+ case "When target suffers Hits, this unit suffers them instead.":
break
case "When target suffers Hits, this card suffers 1 hit ONLY instead.":
game.hits = 1