Make passive auras always visible when they've got some area effect.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user