[10215] Implement ROLL_VOTE_DISENCHANT disable

* for player without reqired enchanting skill
* for item without disenchanting possibility
This commit is contained in:
VladimirMangos 2010-07-18 02:00:27 +04:00
parent 15374bd626
commit 4ef23face4
4 changed files with 36 additions and 16 deletions

View file

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