aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOvah <dreadkiller@gmx.de>2019-06-01 08:39:06 +0200
committerccrs <ccrs@users.noreply.github.com>2019-06-01 08:39:06 +0200
commit49a9cbf20a483da006e45f2ff953583c75c689f0 (patch)
tree852d43f1c6ad0e84c04c97330baa037a30352d76 /src
parent9c790e231ef00c29a33b037ac2ae28d526474539 (diff)
Core/Groups: do not allow lfg groups to change the loot mode (#23336)
While the UI does not allow changing the loot mode you can still trigger the opcode by running interface scripts which we will now block as well so nobody can ninja-loot anymore.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Handlers/GroupHandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Handlers/GroupHandler.cpp b/src/server/game/Handlers/GroupHandler.cpp
index 536cc860980..7e0674cfda3 100644
--- a/src/server/game/Handlers/GroupHandler.cpp
+++ b/src/server/game/Handlers/GroupHandler.cpp
@@ -447,6 +447,9 @@ void WorldSession::HandleLootMethodOpcode(WorldPacket& recvData)
if (!group->IsLeader(GetPlayer()->GetGUID()))
return;
+ if (group->isLFGGroup())
+ return;
+
if (lootMethod > NEED_BEFORE_GREED)
return;