From 090b0756b7a36bb0ec796b1093a94c9700a1ec33 Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 14 Oct 2025 16:10:32 -0700 Subject: [PATCH] Allow donation in team games. (#2198) ## Description: Was a bug disabling donation in public team games. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan --- src/server/MapPlaylist.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index 3ce5dfd65..acb14cce0 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -79,8 +79,8 @@ export class MapPlaylist { // Create the default public game config (from your GameManager) return { - donateGold: false, - donateTroops: false, + donateGold: mode === GameMode.Team, + donateTroops: mode === GameMode.Team, gameMap: map, maxPlayers: config.lobbyMaxPlayers(map, mode, playerTeams), gameType: GameType.Public,