mirror of
https://github.com/pangolp/mod-quest-loot-party.git
synced 2026-01-13 01:08:38 +00:00
Feat. Only Quality normal (#1)
This commit is contained in:
@@ -28,10 +28,15 @@ public:
|
||||
void OnBeforeFillQuestLootItem(Player* /*player*/, LootItem& item) override
|
||||
{
|
||||
if (sConfigMgr->GetOption<bool>("QuestParty.Enable", false))
|
||||
{
|
||||
ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(item.itemid);
|
||||
|
||||
if (itemTemplate->Quality == ITEM_QUALITY_NORMAL)
|
||||
{
|
||||
item.freeforall = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void AddLootPartyScripts()
|
||||
|
||||
Reference in New Issue
Block a user