Make passive auras always visible when they've got some area effect.

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-07-21 01:22:52 +02:00
parent c9860e3b9f
commit a71d11149f
2 changed files with 9 additions and 4 deletions
+8
View File
@@ -408,6 +408,14 @@ inline bool IsAreaAuraEffect(uint32 effect)
return false;
}
inline bool HasAreaAuraEffect(SpellEntry const *spellInfo)
{
for (uint8 i=0;i<MAX_SPELL_EFFECTS;++i)
if (IsAreaAuraEffect(spellInfo->Effect[i]))
return true;
return false;
}
inline bool IsUnitOwnedAuraEffect(uint32 effect)
{
return (IsAreaAuraEffect(effect) || effect == SPELL_EFFECT_APPLY_AURA);