diff options
author | Gildor <gildor55@gmail.com> | 2025-02-18 12:36:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 12:36:04 +0100 |
commit | 8785c0d5a5bf1967ee1469fdaf0d024dd22f0f0d (patch) | |
tree | ba02a0061d01e8da873accebc7719c02fd79da66 /src/server/game/Groups/Group.cpp | |
parent | de3ba5229f010c30e4d7af1ad28680afbcad873f (diff) |
Core/Groups: align the player's dungeon/raid difficulty with the group's difficulty upon joining, regardless of the player's level. (#30699)
Diffstat (limited to 'src/server/game/Groups/Group.cpp')
-rw-r--r-- | src/server/game/Groups/Group.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/server/game/Groups/Group.cpp b/src/server/game/Groups/Group.cpp index 7c17d794c0e..dd49abd092a 100644 --- a/src/server/game/Groups/Group.cpp +++ b/src/server/game/Groups/Group.cpp @@ -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); |