From b788a4b7e12f18710eb97e72bbcb36d124e3cc03 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Fri, 23 Jun 2023 22:54:18 -0300 Subject: [PATCH] Feat. Only Quality normal (#1) --- src/quest_loot_party.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/quest_loot_party.cpp b/src/quest_loot_party.cpp index 5128bc3..b7b3927 100644 --- a/src/quest_loot_party.cpp +++ b/src/quest_loot_party.cpp @@ -29,7 +29,12 @@ public: { if (sConfigMgr->GetOption("QuestParty.Enable", false)) { - item.freeforall = true; + ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(item.itemid); + + if (itemTemplate->Quality == ITEM_QUALITY_NORMAL) + { + item.freeforall = true; + } } } };