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:
Ovah
2019-06-01 08:39:06 +02:00
committed by Shauren
parent b4652a38d3
commit 0feebcdf5b

View File

@@ -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: