don't display event saying you are traitor if you break alliance with traitor

This commit is contained in:
Evan
2024-11-08 20:46:37 -08:00
parent 466574eb41
commit 5c5423ef31
+1 -1
View File
@@ -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,