fix: Support saving hidden items as part of transmog sets (#102)

This commit is contained in:
ZhengPeiRu21
2022-09-07 21:05:09 -06:00
committed by GitHub
parent e576e69c8e
commit 915aa1672f
2 changed files with 18 additions and 8 deletions

View File

@@ -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;
}
}