mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 08:20:50 +00:00
don't display event saying you are traitor if you break alliance with traitor
This commit is contained in:
@@ -256,7 +256,7 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
const myPlayer = this.game.playerByClientID(this.clientID);
|
||||
if (!myPlayer) return;
|
||||
|
||||
if (event.traitor === myPlayer) {
|
||||
if (!event.betrayed.isTraitor() && event.traitor === myPlayer) {
|
||||
this.addEvent({
|
||||
description: `You broke your alliance with ${event.betrayed.name()}, making you a TRAITOR`,
|
||||
type: MessageType.ERROR,
|
||||
|
||||
Reference in New Issue
Block a user