aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-08 14:29:07 -0600
committermegamage <none@none>2009-01-08 14:29:07 -0600
commita8d74dfb360e511e360e8b9af4f72105dbba995e (patch)
tree189d72dcaf692991074a17614f8661c7125a386e /src
parent08bb6082d96792bc02ef6275a1f84f9a5eacd529 (diff)
*Do not check LOS for triggered spells.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index c5d6e748668..e9e79cb1594 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -5093,6 +5093,10 @@ bool Spell::CheckTarget( Unit* target, uint32 eff, bool hitPhase )
return false;
}
+ //Do not check LOS for triggered spells
+ if(m_IsTriggeredSpell)
+ return true;
+
//Check targets for LOS visibility (except spells without range limitations )
switch(m_spellInfo->Effect[eff])
{