PETUpkeepPhaseActions

class modules.js.Action.PETUpkeepPhaseActions()
modules.js.Action.PETUpkeepPhaseActions.PETUpkeepPhaseActions

constructor

modules.js.Action.PETUpkeepPhaseActions.discardCards(evt)

Callback function to discard cards during the upkeepPhase state

First the functions checks whether the action is possible, then check if the user has selected the correct number of cards, then send the ids to the back-end (separated by ;)

Arguments
  • evt – event sent by the button click