Implement logic to subtract stamina from a card when it is attacked by an opponent or player. This involves updating the game state to reflect stamina changes and ensuring that the card's stamina is accurately tracked.
Related Requirements:
Combat mechanics
Goal In Context:
The game will correctly update the HP, taking into account the resistance of the character.
Preconditions:
Game state is initialized and maintained.
Successful End Condition:
The game can access the resistance values and use these to update the HP values depending on the opponent's attack.
Description:
Implement logic to subtract stamina from a card when it is attacked by an opponent or player. This involves updating the game state to reflect stamina changes and ensuring that the card's stamina is accurately tracked.
Related Requirements:
Combat mechanics
Goal In Context:
The game will correctly update the HP, taking into account the resistance of the character.
Preconditions:
Game state is initialized and maintained.
Successful End Condition: The game can access the resistance values and use these to update the HP values depending on the opponent's attack.
Primary Actors:
Developer Main Flow: