Core/Groups: align the player's dungeon/raid difficulty with the group's difficulty upon joining, regardless of the player's level. (#30699)

This commit is contained in:
Gildor
2025-02-18 12:36:04 +01:00
committed by GitHub
parent de3ba5229f
commit 8785c0d5a5
2 changed files with 8 additions and 16 deletions

View File

@@ -467,18 +467,15 @@ bool Group::AddMember(Player* player)
player->ResetInstances(INSTANCE_RESET_GROUP_JOIN, false);
player->ResetInstances(INSTANCE_RESET_GROUP_JOIN, true);
if (player->GetLevel() >= LEVELREQUIREMENT_HEROIC)
if (player->GetDungeonDifficulty() != GetDungeonDifficulty())
{
if (player->GetDungeonDifficulty() != GetDungeonDifficulty())
{
player->SetDungeonDifficulty(GetDungeonDifficulty());
player->SendDungeonDifficulty(true);
}
if (player->GetRaidDifficulty() != GetRaidDifficulty())
{
player->SetRaidDifficulty(GetRaidDifficulty());
player->SendRaidDifficulty(true);
}
player->SetDungeonDifficulty(GetDungeonDifficulty());
player->SendDungeonDifficulty(true);
}
if (player->GetRaidDifficulty() != GetRaidDifficulty())
{
player->SetRaidDifficulty(GetRaidDifficulty());
player->SendRaidDifficulty(true);
}
}
player->SetGroupUpdateFlag(GROUP_UPDATE_FULL);

View File

@@ -216,11 +216,6 @@ public:
#pragma pack(push, 1)
enum LevelRequirementVsMode
{
LEVELREQUIREMENT_HEROIC = 70
};
struct ZoneDynamicInfo
{
ZoneDynamicInfo();