fix : make discard discard again
release-tag / release-image (push) Successful in 38s

This commit is contained in:
2024-12-21 19:40:43 +01:00
parent 375b1316f4
commit ad3d660ee6
+2 -2
View File
@@ -263,7 +263,7 @@ export class TurnService {
session?: mongoose.mongo.ClientSession,
) {
if (
target.hand.cards.length >=
target.hand.cards.length <=
target.fuckUMarkers + target.discardMarkers
) {
throw new HttpException(
@@ -298,7 +298,7 @@ export class TurnService {
) {
const unlockedCards = target.board.cards.filter((c) => !c.isLocked(game));
if (
target.hand.cards.length + unlockedCards.length >=
target.hand.cards.length + unlockedCards.length <=
target.fuckUMarkers + target.discardMarkers
) {
throw new HttpException(