feat. Improve the condition on the items (#2)

This commit is contained in:
Walter Pagani
2024-02-11 12:01:35 -03:00
committed by GitHub
parent b788a4b7e1
commit 0dd61055ca

View File

@@ -31,7 +31,7 @@ public:
{ {
ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(item.itemid); ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(item.itemid);
if (itemTemplate->Quality == ITEM_QUALITY_NORMAL) if ((itemTemplate->Quality == ITEM_QUALITY_NORMAL) && (itemTemplate->Class == ITEM_CLASS_QUEST) && (itemTemplate->SubClass == ITEM_SUBCLASS_QUEST) && (itemTemplate->Bonding == BIND_QUEST_ITEM))
{ {
item.freeforall = true; item.freeforall = true;
} }