aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Conditions/DisableMgr.cpp
diff options
context:
space:
mode:
authorjoschiwald <joschiwald@online.de>2012-12-31 01:48:51 +0100
committerjoschiwald <joschiwald@online.de>2012-12-31 01:48:51 +0100
commit18bfa14b74169cc3ac3f288c45ab78ad73d11334 (patch)
treef882f847cef63f6278b66b97d2b83fa5cf6f2809 /src/server/game/Conditions/DisableMgr.cpp
parent22896bd7a46ade453e72ad09138b3c6d62efe4e7 (diff)
Core/DisableMgr: readd possibility to disable los check for spells
Diffstat (limited to 'src/server/game/Conditions/DisableMgr.cpp')
-rw-r--r--src/server/game/Conditions/DisableMgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp
index b544e966084..3940314c3de 100644
--- a/src/server/game/Conditions/DisableMgr.cpp
+++ b/src/server/game/Conditions/DisableMgr.cpp
@@ -310,6 +310,8 @@ bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags
}
else if (spellFlags & SPELL_DISABLE_DEPRECATED_SPELL) // call not from spellcast
return true;
+ else if (flags & SPELL_DISABLE_LOS)
+ return spellFlags & SPELL_DISABLE_LOS;
break;
}