PETUpkeepDiscardFunctionsTrait
- trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETUpkeepDiscardFunctionsTrait
- Trait holding game actions that are supposed to happen during upkeepPhase state
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Actions\PETUpkeepDiscardFunctionsTrait::upkeepDiscard($cardsId)
- Discards cards from the active player's hand.First checks if the action is possible, check if the player discarded the right number of cards, then get thecards from the Deck component, check that they come from the player's hand, and then discard them and notifyplayers
- Source
modules/php/Traits/Actions/PETUpkeepDiscardFunctionsTrait.php#41
- Parameters
$cardsId (array)
- Returns
void