@@ -994,7 +994,7 @@ bool CanRollOnItem(LootItem const& item, Player const* player, Loot* loot)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
uint32 itemCount = player->GetItemCount(item.itemid);
|
uint32 itemCount = player->GetItemCount(item.itemid);
|
||||||
if ((proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount) || (player->CanEquipUniqueItem(proto) != EQUIP_ERR_OK))
|
if ((proto->MaxCount > 0 && static_cast<int32>(itemCount) >= proto->MaxCount))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!item.AllowedForPlayer(player, loot->sourceWorldObjectGUID))
|
if (!item.AllowedForPlayer(player, loot->sourceWorldObjectGUID))
|
||||||
|
|||||||
Reference in New Issue
Block a user