Allow unlimited joker suggestions when granted repeatedly

This commit is contained in:
2026-02-05 19:38:56 +01:00
parent a2dd212377
commit 5b6fa7e407
2 changed files with 27 additions and 5 deletions

View File

@@ -78,10 +78,9 @@ public static class SuggestEndpoints
}
var existingCount = await db.Suggestions.CountAsync(s => s.PlayerId == player.Id);
var maxSuggestions = usingJoker ? 6 : 5;
if (existingCount >= maxSuggestions)
if (!usingJoker && existingCount >= 5)
{
return Results.BadRequest(new { error = "You have reached the suggestion limit." });
return Results.BadRequest(new { error = "You have reached the 5 suggestion limit." });
}
var suggestion = new Suggestion