This commit is contained in:
gamer147
2026-05-25 12:03:47 -04:00
parent d067f8a64a
commit 558e8288eb
44 changed files with 6512 additions and 3 deletions

View File

@@ -181,6 +181,9 @@ public class DeckController : SVSimController
if (skin is not null) deck.LeaderSkin = skin;
deck.RandomLeaderSkin = request.IsRandomLeaderSkin;
deck.Cards = cards;
// Clear stale rotation_id if the deck moved to a non-MyRotation format;
// otherwise persist the chosen period so it survives the next /load/index.
deck.MyRotationId = format == Format.MyRotation ? request.RotationId : null;
});
}