mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: revert unique item check introduced in ea69115.
Proven to be wrong in its current form. Will reintroduce later either in the same method or via db conditions.
This commit is contained in:
@@ -394,10 +394,6 @@ bool LootItem::AllowedForPlayer(Player const* player) const
|
||||
if (!(pProto->FlagsCu & ITEM_FLAGS_CU_IGNORE_QUEST_STATUS) && ((needs_quest || (pProto->StartQuest && player->GetQuestStatus(pProto->StartQuest) != QUEST_STATUS_NONE)) && !player->HasQuestForItem(itemid)))
|
||||
return false;
|
||||
|
||||
// Don't show non-epic and non-legendary bind-when-picked-up unique items if player already has the maximum allowed quantity.
|
||||
if (pProto->Bonding == BIND_WHEN_PICKED_UP && pProto->Quality < ITEM_QUALITY_EPIC && pProto->MaxCount && int32(player->GetItemCount(itemid, true)) >= pProto->MaxCount)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user