From d42b09530485da22500f9e2d3439c6863b56960f Mon Sep 17 00:00:00 2001 From: Antonio Lentini <111151429+lentscode@users.noreply.github.com> Date: Sun, 28 Jun 2026 15:34:39 +0200 Subject: [PATCH] fix: Remove FFA collusion warnings on replay and ranked (#4414) (#4434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > **Before opening a PR:** discuss new features on [Discord](https://discord.gg/K9zernJB5z) first, and file bugs or small improvements as [issues](https://github.com/openfrontio/OpenFrontIO/issues/new/choose). You must be assigned to an `approved` issue — unsolicited PRs will be auto-closed. **Add approved & assigned issue number here:** Resolves #4414 ## Description: The 2 lines added check whether it's a replay or a ranked game. If so, don't show the FFA collusion warning ## Please complete the following: - [X] I have added screenshots for all UI updates (couldn't sign in via the dev server) - [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 ## Please put your Discord username so you can be contacted if a bug or regression is found: lents (not in the development server yet, sent request to join) --- src/client/hud/layers/HeadsUpMessage.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/hud/layers/HeadsUpMessage.ts b/src/client/hud/layers/HeadsUpMessage.ts index 4c633820e..0ba6d6e26 100644 --- a/src/client/hud/layers/HeadsUpMessage.ts +++ b/src/client/hud/layers/HeadsUpMessage.ts @@ -1,6 +1,6 @@ import { LitElement, html } from "lit"; import { customElement, state } from "lit/decorators.js"; -import { GameMode, GameType } from "../../../core/game/Game"; +import { GameMode, GameType, RankedType } from "../../../core/game/Game"; import { GameUpdateType } from "../../../core/game/GameUpdates"; import { Controller } from "../../Controller"; import { translateText } from "../../Utils"; @@ -195,6 +195,8 @@ export class HeadsUpMessage extends LitElement implements Controller { ` : null} ${this.game?.inSpawnPhase() && + !this.game.config().isReplay() && + this.game.config().gameConfig().rankedType !== RankedType.OneVOne && this.game.config().gameConfig().gameMode === GameMode.FFA && this.game.config().gameConfig().gameType === GameType.Public && !this.hasClosedCollusionWarning