From 4fb256254c4abb5d65fbaca7fcdf5cf33322f00c Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 26 Jul 2010 22:25:03 +0200 Subject: Fixed bug in Player::Satisfy that allowed to sometimes bypass instance requirements Fixed DisableMgr incorrectly blocking entry into maps when only one mode was disabled --HG-- branch : trunk --- src/server/game/Conditions/DisableMgr.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/server/game/Conditions/DisableMgr.cpp') diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index 803d607b7f8..1900626dff5 100644 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -218,8 +218,6 @@ bool DisableMgr::IsDisabledFor(DisableType type, uint32 entry, Unit const* pUnit return true; } case DISABLE_TYPE_MAP: - if (!pUnit) - return true; if (Player const* pPlayer = pUnit->ToPlayer()) { MapEntry const* mapEntry = sMapStore.LookupEntry(entry); -- cgit v1.2.3