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