From 32197e024d2e76d033cbc2e5484e06bb346f0a2f Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Wed, 4 Oct 2023 10:32:33 -0400 Subject: [PATCH] Actually fix faction invite spam --- src/Faction/FactionHelpers.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Faction/FactionHelpers.tsx b/src/Faction/FactionHelpers.tsx index e65ba0646..627cd0ef9 100644 --- a/src/Faction/FactionHelpers.tsx +++ b/src/Faction/FactionHelpers.tsx @@ -23,6 +23,7 @@ import { getAugCost } from "../Augmentation/AugmentationHelpers"; import { createEnumKeyedRecord, getRecordKeys } from "../Types/Record"; export function inviteToFaction(faction: Faction): void { + if (faction.alreadyInvited || faction.isMember) return; Player.receiveInvite(faction.name); faction.alreadyInvited = true; if (!Settings.SuppressFactionInvites) {