Practice battles work

This commit is contained in:
gamer147
2026-05-23 22:46:11 -04:00
parent 704542786a
commit 21b97269ff
15 changed files with 34968 additions and 82 deletions

View File

@@ -256,13 +256,6 @@ public class DeckController : SVSimController
return Task.FromResult<ActionResult<EmptyResponse>>(new EmptyResponse());
}
private bool TryGetViewerId(out long viewerId)
{
viewerId = 0;
var claim = User.Claims.FirstOrDefault(c => c.Type == ShadowverseClaimTypes.ViewerIdClaim)?.Value;
return claim is not null && long.TryParse(claim, out viewerId);
}
/// <summary>
/// Convert a flat `card_id_array` (cards repeated for count) into a grouped DeckCard list.
/// Cards not in the DB are silently dropped — until CardImport lands the result is always