mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-12-01 21:13:06 +08:00
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:
@@ -1148,15 +1148,18 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
uint32 accountId = 0;
|
||||
if (sConfigMgr->GetOption<bool>("Transmogrification.EnablePlus", false))
|
||||
{
|
||||
uint32 accountId = 0;
|
||||
|
||||
if (player->GetSession())
|
||||
accountId = player->GetSession()->GetAccountId();
|
||||
if (player->GetSession())
|
||||
accountId = player->GetSession()->GetAccountId();
|
||||
|
||||
QueryResult resultAcc = LoginDatabase.Query("SELECT `membership_level` FROM `acore_cms_subscriptions` WHERE `account_name` COLLATE utf8mb4_general_ci = (SELECT `username` FROM `account` WHERE `id` = {})", accountId);
|
||||
QueryResult resultAcc = LoginDatabase.Query("SELECT `membership_level` FROM `acore_cms_subscriptions` WHERE `account_name` COLLATE utf8mb4_general_ci = (SELECT `username` FROM `account` WHERE `id` = {})", accountId);
|
||||
|
||||
if (resultAcc)
|
||||
player->UpdatePlayerSetting("acore_cms_subscriptions", SETTING_TRANSMOG_MEMBERSHIP_LEVEL, (*resultAcc)[0].Get<uint32>());
|
||||
if (resultAcc)
|
||||
player->UpdatePlayerSetting("acore_cms_subscriptions", SETTING_TRANSMOG_MEMBERSHIP_LEVEL, (*resultAcc)[0].Get<uint32>());
|
||||
}
|
||||
|
||||
#ifdef PRESETS
|
||||
if (sT->GetEnableSets())
|
||||
|
||||
Reference in New Issue
Block a user