mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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.
(cherry picked from commit 49a9cbf20a)
This commit is contained in:
@@ -372,6 +372,9 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod&
|
||||
if (!group->IsLeader(GetPlayer()->GetGUID()))
|
||||
return;
|
||||
|
||||
if (group->isLFGGroup())
|
||||
return;
|
||||
|
||||
switch (packet.LootMethod)
|
||||
{
|
||||
case FREE_FOR_ALL:
|
||||
|
||||
Reference in New Issue
Block a user