mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
Merge branch 'master' into Playerbot
This commit is contained in:
@@ -994,7 +994,7 @@ bool CanRollOnItem(LootItem const& item, Player const* player, Loot* loot)
|
||||
return false;
|
||||
|
||||
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;
|
||||
|
||||
if (!item.AllowedForPlayer(player, loot->sourceWorldObjectGUID))
|
||||
@@ -1573,7 +1573,7 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
|
||||
ItemPosCountVec dest;
|
||||
InventoryResult msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, roll->itemid, item->count);
|
||||
|
||||
if(msg == EQUIP_ERR_OK)
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
{
|
||||
player->AutoStoreLoot(pProto->DisenchantID, LootTemplates_Disenchant, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user