mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9843] Restore need seelction show at loot roll.
Also some clanups including merge 2 roll type enum.
This commit is contained in:
parent
de95b8ad5f
commit
ec0141261a
6 changed files with 66 additions and 65 deletions
|
|
@ -386,11 +386,14 @@ void WorldSession::HandleLootRoll( WorldPacket &recv_data )
|
|||
//DEBUG_LOG("WORLD RECIEVE CMSG_LOOT_ROLL, From:%u, Numberofplayers:%u, rollType:%u", (uint32)Guid, NumberOfPlayers, rollType);
|
||||
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
if(!group)
|
||||
if (!group)
|
||||
return;
|
||||
|
||||
if (rollType >= MAX_ROLL_FROM_CLIENT)
|
||||
return;
|
||||
|
||||
// everything is fine, do it
|
||||
group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, rollType);
|
||||
group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, RollVote(rollType));
|
||||
|
||||
switch (rollType)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue