Have the server respect gameType info when setting up zones.

* ServerPlayer::setupZones is now passed the room->getGameTypes();
* ServerPlayer::setupZones now checks if the GameType String includes "Commander" and then sets the life total to 40 instead.
This commit is contained in:
Lukas Brübach 2024-11-16 11:37:06 +01:00
parent dde2f8b9ad
commit fb06f1197a
3 changed files with 11 additions and 5 deletions

View file

@ -169,7 +169,7 @@ public:
void addCounter(Server_Counter *counter);
void clearZones();
void setupZones();
void setupZones(const QStringList& gameTypes);
Response::ResponseCode drawCards(GameEventStorage &ges, int number);
Response::ResponseCode moveCard(GameEventStorage &ges,