Core/Spells: Implemented SPELL_ATTR5_TREAT_AS_AREA_EFFECT
This commit is contained in:
1 parent
4cfd439d34
commit
0f6cac2373
4 files changed
+5
-8
No files matched your search
@@ -1237,9 +1237,6 @@ bool SpellInfo::IsAbilityOfSkillType(uint32 skillType) const
|
||||
|
||||
bool SpellInfo::IsAffectingArea() const
|
||||
{
|
||||
if (HasAttribute(SPELL_ATTR5_TREAT_AS_AREA_EFFECT))
|
||||
return true;
|
||||
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
if (Effects[i].IsEffect() && (Effects[i].IsTargetingArea() || Effects[i].IsEffect(SPELL_EFFECT_PERSISTENT_AREA_AURA) || Effects[i].IsAreaAuraEffect()))
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user