From 0dd61055cafe71236e29fece5f184ec5bedac181 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Sun, 11 Feb 2024 12:01:35 -0300 Subject: [PATCH] feat. Improve the condition on the items (#2) --- src/quest_loot_party.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quest_loot_party.cpp b/src/quest_loot_party.cpp index b7b3927..a7cdca6 100644 --- a/src/quest_loot_party.cpp +++ b/src/quest_loot_party.cpp @@ -31,7 +31,7 @@ public: { 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; }