aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Conditions/DisableMgr.cpp
diff options
context:
space:
mode:
authorShauren <none@none>2010-08-10 19:40:35 +0200
committerShauren <none@none>2010-08-10 19:40:35 +0200
commit36d1405b524e9aa397ff6e1d5f48f24711766f11 (patch)
tree417f42e7b4f5cb3a7d0a5b02287ab98658010b57 /src/server/game/Conditions/DisableMgr.cpp
parent4f9ec558f41c3eeb1a5279fd7cc4dfbaedfaab4c (diff)
Fixed bug allowing players to enter instance even if selected difficulty was disabled
Added map id to log when player tries to enter disabled map --HG-- branch : trunk
Diffstat (limited to 'src/server/game/Conditions/DisableMgr.cpp')
-rw-r--r--src/server/game/Conditions/DisableMgr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp
index 505f76469f7..9de97269f68 100644
--- a/src/server/game/Conditions/DisableMgr.cpp
+++ b/src/server/game/Conditions/DisableMgr.cpp
@@ -238,7 +238,9 @@ bool DisableMgr::IsDisabledFor(DisableType type, uint32 entry, Unit const* pUnit
if (mapEntry->IsDungeon())
{
uint8 disabledModes = itr->second;
- switch(mapEntry->IsRaid() ? pPlayer->GetRaidDifficulty() : pPlayer->GetDungeonDifficulty())
+ Difficulty targetDifficulty = pPlayer->GetDifficulty(mapEntry->IsRaid());
+ GetDownscaledMapDifficultyData(entry, targetDifficulty);
+ switch(targetDifficulty)
{
case DUNGEON_DIFFICULTY_NORMAL:
return disabledModes & DUNGEON_STATUSFLAG_NORMAL;