M007 S03: Gambit cost shown in confirmation dialog but never deducted from player resources #6

Closed
opened 2026-05-15 19:19:34 +00:00 by Mark · 0 comments
Owner

Severity: MEDIUM
File: src/pages/CasualDuel.tsx:476-483

Problem

confirmGambit() creates the active opening state but never reduces the player's vitality or will resources by the gambit cost. The cost is displayed in the confirmation dialog but has no game effect. Gambits are free to activate.

Fix

After confirming a gambit, dispatch ASSIGN_SYMBOL or directly modify the player resources to deduct gambitCost.vitality and/or gambitCost.will from state.players[0].resources. This needs to happen before or as part of activating the opening.

**Severity:** MEDIUM **File:** src/pages/CasualDuel.tsx:476-483 ## Problem `confirmGambit()` creates the active opening state but never reduces the player's vitality or will resources by the gambit cost. The cost is displayed in the confirmation dialog but has no game effect. Gambits are free to activate. ## Fix After confirming a gambit, dispatch `ASSIGN_SYMBOL` or directly modify the player resources to deduct `gambitCost.vitality` and/or `gambitCost.will` from `state.players[0].resources`. This needs to happen before or as part of activating the opening.
Mark closed this issue 2026-05-16 17:23:30 +00:00
Sign in to join this conversation.
No description provided.