mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
fix: Support saving hidden items as part of transmog sets (#102)
This commit is contained in:
@@ -316,12 +316,15 @@ public:
|
||||
uint32 entry = sT->GetFakeEntry(newItem->GetGUID());
|
||||
if (!entry)
|
||||
continue;
|
||||
const ItemTemplate* temp = sObjectMgr->GetItemTemplate(entry);
|
||||
if (!temp)
|
||||
continue;
|
||||
if (!sT->SuitableForTransmogrification(player, temp))
|
||||
continue;
|
||||
cost += sT->GetSpecialPrice(temp);
|
||||
if (entry != HIDDEN_ITEM_ID)
|
||||
{
|
||||
const ItemTemplate* temp = sObjectMgr->GetItemTemplate(entry);
|
||||
if (!temp)
|
||||
continue;
|
||||
if (!sT->SuitableForTransmogrification(player, temp))
|
||||
continue;
|
||||
cost += sT->GetSpecialPrice(temp);
|
||||
}
|
||||
items[slot] = entry;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user