Disable talent initialzation for persistence random bot

This commit is contained in:
Yunfan Li
2024-02-12 14:15:57 +08:00
parent 0b105e70d7
commit 21e9e2e2aa

View File

@@ -195,7 +195,9 @@ void PlayerbotFactory::Randomize(bool incremental)
pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "PlayerbotFactory_Talents");
LOG_INFO("playerbots", "Initializing talents...");
InitTalentsTree();
if (!sPlayerbotAIConfig->equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig->equipmentPersistenceLevel) {
InitTalentsTree();
}
sRandomPlayerbotMgr->SetValue(bot->GetGUID().GetCounter(), "specNo", 0);
if (botAI) {
sPlayerbotDbStore->Reset(botAI);