aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrudor <erikstrandberg93@hotmail.com>2018-07-14 18:39:35 +0200
committerShauren <shauren.trinity@gmail.com>2018-07-14 18:39:35 +0200
commit9a22f3b820ec376fc2ee2d9a06e0adc9b0760dd8 (patch)
tree96cd28a4e0adda402106c6f95d44dadc3821ac22 /src
parentd7730a12cc75a9bfd1369137f872e5b172224334 (diff)
Core/Instances: Fix an issue where players where able to enter a raid instance without being in a raid group in an older expansion, but would later be prompted with a boot message once inside the instance. (#22156)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index b43074441fc..fef5cbea434 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -19789,7 +19789,7 @@ bool Player::CheckInstanceValidity(bool /*isLogin*/)
return true;
// raid instances require the player to be in a raid group to be valid
- if (map->IsRaid() && !sWorld->getBoolConfig(CONFIG_INSTANCE_IGNORE_RAID))
+ if (map->IsRaid() && !sWorld->getBoolConfig(CONFIG_INSTANCE_IGNORE_RAID) && (map->GetEntry()->Expansion() >= sWorld->getIntConfig(CONFIG_EXPANSION)))
if (!GetGroup() || !GetGroup()->isRaidGroup())
return false;