From 5619f3245a36e444363b0167b37736e65223e1df Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 22 Jan 2023 23:42:06 -0500 Subject: [PATCH] Core/Guild: Fixed possible guild exploit Port From (https://github.com/TrinityCore/TrinityCore/commit/9ac19fd7904b0778c5c6fcd443a3f4a65e2e9435) --- Source/Game/Handlers/GuildHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Handlers/GuildHandler.cs b/Source/Game/Handlers/GuildHandler.cs index d9bcbab5e..e390c39f6 100644 --- a/Source/Game/Handlers/GuildHandler.cs +++ b/Source/Game/Handlers/GuildHandler.cs @@ -59,6 +59,9 @@ namespace Game [WorldPacketHandler(ClientOpcodes.GuildDeclineInvitation)] void HandleGuildDeclineInvitation(GuildDeclineInvitation packet) { + if (GetPlayer().GetGuildId() != 0) + return; + GetPlayer().SetGuildIdInvited(0); GetPlayer().SetInGuild(0); }