feat: Do not show appearance added message for items that cannot ever be transmogged (#91)

This commit is contained in:
ZhengPeiRu21
2022-08-26 12:57:00 -06:00
committed by GitHub
parent 59cd8dc8b7
commit 06d7c88c4d
4 changed files with 13 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ public:
if (sTransmogrification->AddCollectedAppearance(accountId, itemId))
{
// Notify target of new item in appearance collection
if (target && !(target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value))
if (target && !(target->GetPlayerSetting("mod-transmog", SETTING_HIDE_TRANSMOG).value) && !sTransmogrification->CanNeverTransmog(itemTemplate))
{
ChatHandler(target->GetSession()).PSendSysMessage(R"(|c%s|Hitem:%u:0:0:0:0:0:0:0:0|h[%s]|h|r has been added to your appearance collection.)", itemQuality.c_str(), itemId, itemName.c_str());
}