[10213] Implement ITEM_FLAGS2_NEED_ROLL_DISABLED.

This commit is contained in:
VladimirMangos 2010-07-17 23:39:27 +04:00
parent 5c6fbdb54e
commit 73a00a6807
4 changed files with 35 additions and 13 deletions

View file

@ -392,8 +392,9 @@ void WorldSession::HandleLootRoll( WorldPacket &recv_data )
if (rollType >= MAX_ROLL_FROM_CLIENT)
return;
// everything is fine, do it
group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, RollVote(rollType));
// everything is fine, do it, if false then some cheating problem found
if(!group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, RollVote(rollType)))
return;
switch (rollType)
{