feat(free-battle): register PvpOnly ModePolicy for rotation+unlimited

This commit is contained in:
gamer147
2026-06-12 21:17:24 -04:00
parent 1054c86038
commit 84760490e7

View File

@@ -153,6 +153,10 @@ public class Program
new ModePolicy("arena_two_pick_battle", PolicyKind.PvpOnly),
new ModePolicy("rotation_rank_battle", PolicyKind.PvpFirstThenAiFallback),
new ModePolicy("unlimited_rank_battle", PolicyKind.PvpFirstThenAiFallback),
// Free battle is casual PvP — no /ai_*_free_battle URL family exists in the client
// (see Shadowverse_Code_2026-05-23/ApiType.cs), so PvpOnly: park forever, no AI fallback.
new ModePolicy("rotation_free_battle", PolicyKind.PvpOnly),
new ModePolicy("unlimited_free_battle", PolicyKind.PvpOnly),
}));
builder.Services.AddSingleton<IMatchingPairUpService, InProcessPairUp>();
// Single resolver shared by every /do_matching family controller. Owns the