BREAKING CHANGE: Remove Subscription handling from the transmog module (#208)

Use mod-acore-subscriptions to load it instead
This commit is contained in:
Andrew
2025-07-17 22:07:07 -03:00
committed by GitHub
parent dc440afa73
commit 8237df6f88

View File

@@ -1164,17 +1164,6 @@ public:
}
}
if (sConfigMgr->GetOption<bool>("Transmogrification.EnablePlus", false))
{
uint32 accountId = 0;
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);
player->UpdatePlayerSetting("acore_cms_subscriptions", SETTING_TRANSMOG_MEMBERSHIP_LEVEL, resultAcc ? (*resultAcc)[0].Get<uint32>() : 0);
}
#ifdef PRESETS
if (sT->GetEnableSets())
sT->LoadPlayerSets(playerGUID);