Core/Spells: renamed SPELL_ATTR5_INCLUDE_MELEE_RANGE to SPELL_ATTR5_TREAT_AS_AREA_EFFECT and handle the attribute in SpellInfo::IsAffectingArea

This commit is contained in:
Ovahlord committed 2022-01-16 11:44:49 +01:00
1 parent d5fa8c3e10
commit 9892d239a8
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -1229,6 +1229,9 @@ 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;