diff --git a/src/games/controllers/turn.controller.ts b/src/games/controllers/turn.controller.ts index 15d413b..eb12f1d 100644 --- a/src/games/controllers/turn.controller.ts +++ b/src/games/controllers/turn.controller.ts @@ -222,7 +222,15 @@ export class TurnController { HttpStatus.FORBIDDEN, ); } - + if ( + targetPlayer.fuckUMarkers + targetPlayer.discardMarkers >= + targetPlayer.hand.cards.length + ) { + throw new HttpException( + 'You cannot add more discard markers to this player', + HttpStatus.BAD_REQUEST, + ); + } const targetToken = game.currentTurn.tokens.find( (t) => t.effect == CardEffects.MAKE_DISCARD, );