mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
feat: Add config option to allow adding tradeable/refundable items to appearance collection. (#86)
This commit is contained in:
@@ -489,7 +489,9 @@ class PS_Transmogrification : public PlayerScript
|
||||
private:
|
||||
void AddToDatabase(Player* player, Item* item)
|
||||
{
|
||||
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_BOP_TRADEABLE) || item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_REFUNDABLE))
|
||||
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_BOP_TRADEABLE) && !sTransmogrification->GetAllowTradeable())
|
||||
return;
|
||||
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_REFUNDABLE))
|
||||
return;
|
||||
ItemTemplate const* itemTemplate = item->GetTemplate();
|
||||
AddToDatabase(player, itemTemplate);
|
||||
|
||||
Reference in New Issue
Block a user