*Allow some spell effects to target units not in caster's map - fixes SPELL_EFFECT_SUMMON_PLAYER

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-29 19:48:40 +02:00
parent ade1bbdd62
commit c44b601ac7
7 changed files with 46 additions and 9 deletions
+10
View File
@@ -398,6 +398,16 @@ inline bool IsAreaOfEffectSpell(SpellEntry const *spellInfo)
return false;
}
inline bool IsFarUnitTargetEffect(uint32 effect)
{
return (effect == SPELL_EFFECT_SUMMON_PLAYER);
}
inline bool IsFarDestTargetEffect(uint32 effect)
{
return (effect == SPELL_EFFECT_TELEPORT_UNITS);
}
inline bool IsAreaAuraEffect(uint32 effect)
{
if (effect == SPELL_EFFECT_APPLY_AREA_AURA_PARTY ||