mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: Removed need before greed and round robin loot methods
"Round Robin and the old "Group Loot" option were removed in 7.0.3, since they were almost entirely unused. Loot options are now: Group Loot, Master Loot (if in a guild party), Personal Loot, and Free For All"
This commit is contained in:
@@ -348,8 +348,16 @@ void WorldSession::HandleSetLootMethodOpcode(WorldPackets::Party::SetLootMethod&
|
||||
if (!group->IsLeader(GetPlayer()->GetGUID()))
|
||||
return;
|
||||
|
||||
if (packet.LootMethod > PERSONAL_LOOT)
|
||||
return;
|
||||
switch (packet.LootMethod)
|
||||
{
|
||||
case FREE_FOR_ALL:
|
||||
case MASTER_LOOT:
|
||||
case GROUP_LOOT:
|
||||
case PERSONAL_LOOT:
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
if (packet.LootThreshold < ITEM_QUALITY_UNCOMMON || packet.LootThreshold > ITEM_QUALITY_ARTIFACT)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user