summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules.ts b/rules.ts
index 2cee300..45409a6 100644
--- a/rules.ts
+++ b/rules.ts
@@ -749,6 +749,13 @@ function start_turn() {
// region STATES
+function player_can_resolve_icon(icon: Icon): boolean {
+ if (icon === 'teamwork_on' && game.bonuses[TEAMWORK_BONUS] === ON) {
+ return false;
+ }
+ return true;
+}
+
states.activate_icon = {
inactive: 'activate an icon',
prompt() {
@@ -757,6 +764,9 @@ states.activate_icon = {
const c = cards[game.played_card] as PlayerCard;
for (const i of c.icons) {
gen_action(i);
+ if (!player_can_resolve_icon(i)) {
+ view.actions[i] = 0;
+ }
}
},
spend_hp() {