aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2025-02-18 12:36:04 +0100
committerGitHub <noreply@github.com>2025-02-18 12:36:04 +0100
commit8785c0d5a5bf1967ee1469fdaf0d024dd22f0f0d (patch)
treeba02a0061d01e8da873accebc7719c02fd79da66 /src
parentde3ba5229f010c30e4d7af1ad28680afbcad873f (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')
-rw-r--r--src/server/game/Groups/Group.cpp19
-rw-r--r--src/server/game/Maps/Map.h5
2 files changed, 8 insertions, 16 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);
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h
index 1f8ff20264f..f82420e49e3 100644
--- a/src/server/game/Maps/Map.h
+++ b/src/server/game/Maps/Map.h
@@ -216,11 +216,6 @@ public:
#pragma pack(push, 1)
-enum LevelRequirementVsMode
-{
- LEVELREQUIREMENT_HEROIC = 70
-};
-
struct ZoneDynamicInfo
{
ZoneDynamicInfo();