This commit is contained in:
@@ -263,7 +263,7 @@ export class TurnService {
|
|||||||
session?: mongoose.mongo.ClientSession,
|
session?: mongoose.mongo.ClientSession,
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
target.hand.cards.length >=
|
target.hand.cards.length <=
|
||||||
target.fuckUMarkers + target.discardMarkers
|
target.fuckUMarkers + target.discardMarkers
|
||||||
) {
|
) {
|
||||||
throw new HttpException(
|
throw new HttpException(
|
||||||
@@ -298,7 +298,7 @@ export class TurnService {
|
|||||||
) {
|
) {
|
||||||
const unlockedCards = target.board.cards.filter((c) => !c.isLocked(game));
|
const unlockedCards = target.board.cards.filter((c) => !c.isLocked(game));
|
||||||
if (
|
if (
|
||||||
target.hand.cards.length + unlockedCards.length >=
|
target.hand.cards.length + unlockedCards.length <=
|
||||||
target.fuckUMarkers + target.discardMarkers
|
target.fuckUMarkers + target.discardMarkers
|
||||||
) {
|
) {
|
||||||
throw new HttpException(
|
throw new HttpException(
|
||||||
|
|||||||
Reference in New Issue
Block a user