Only apply Death Knight starting progression to Death Knights

This commit is contained in:
郑佩茹
2022-10-08 10:31:00 -06:00
parent 10cc05ae1b
commit adfbfc981c

View File

@@ -7,7 +7,7 @@ public:
void OnLogin(Player* player) override
{
if (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));
}