fix: do not use transmog plus if disabled (#177)

* fix: do not use transmog plus if disabled

* Update src/transmog_scripts.cpp

---------

Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
Stefano Borzì
2024-09-09 00:22:33 +02:00
committed by GitHub
parent 2c928ec67c
commit 831572e79d

View File

@@ -1148,6 +1148,8 @@ public:
}
}
if (sConfigMgr->GetOption<bool>("Transmogrification.EnablePlus", false))
{
uint32 accountId = 0;
if (player->GetSession())
@@ -1157,6 +1159,7 @@ public:
if (resultAcc)
player->UpdatePlayerSetting("acore_cms_subscriptions", SETTING_TRANSMOG_MEMBERSHIP_LEVEL, (*resultAcc)[0].Get<uint32>());
}
#ifdef PRESETS
if (sT->GetEnableSets())