Update IndividualProgressionPlayer.cpp (#558)

if you have a lot of RND bots on your server
this update may fix some startup lag issues.

with this setting
IndividualProgression.ExcludedAccountsRegex = "^RNDBOT.*"

RND bots will no longer get checked for progression updates when they log in.
This commit is contained in:
Grimfeather
2025-07-19 00:31:34 +02:00
committed by GitHub
parent b7e49b7546
commit 3c989f5a83

View File

@@ -19,6 +19,11 @@ public:
void OnPlayerLogin(Player* player) override void OnPlayerLogin(Player* player) override
{ {
if (!sIndividualProgression->enabled || isExcludedFromProgression(player))
{
return;
}
if (player->getClass() == CLASS_DEATH_KNIGHT && sIndividualProgression->deathKnightStartingProgression && !sIndividualProgression->hasPassedProgression(player, static_cast<ProgressionState>(sIndividualProgression->deathKnightStartingProgression))) if (player->getClass() == CLASS_DEATH_KNIGHT && sIndividualProgression->deathKnightStartingProgression && !sIndividualProgression->hasPassedProgression(player, static_cast<ProgressionState>(sIndividualProgression->deathKnightStartingProgression)))
{ {
sIndividualProgression->UpdateProgressionState(player, static_cast<ProgressionState>(sIndividualProgression->deathKnightStartingProgression)); sIndividualProgression->UpdateProgressionState(player, static_cast<ProgressionState>(sIndividualProgression->deathKnightStartingProgression));