Core/Guild: Fixed possible guild exploit
Port From (https://github.com/TrinityCore/TrinityCore/commit/9ac19fd7904b0778c5c6fcd443a3f4a65e2e9435)
This commit is contained in:
@@ -59,6 +59,9 @@ namespace Game
|
||||
[WorldPacketHandler(ClientOpcodes.GuildDeclineInvitation)]
|
||||
void HandleGuildDeclineInvitation(GuildDeclineInvitation packet)
|
||||
{
|
||||
if (GetPlayer().GetGuildId() != 0)
|
||||
return;
|
||||
|
||||
GetPlayer().SetGuildIdInvited(0);
|
||||
GetPlayer().SetInGuild(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user