Skip to content

Commit

Permalink
feat. Improve the condition on the items (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pangolp authored Feb 11, 2024
1 parent b788a4b commit 0dd6105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quest_loot_party.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PlayerLootParty : public PlayerScript
{
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;
}
Expand Down

0 comments on commit 0dd6105

Please sign in to comment.