Core/Spells: Implemented SPELL_ATTR5_TREAT_AS_AREA_EFFECT

Port From (https://github.com/TrinityCore/TrinityCore/commit/2ff29ce1e8242958f9f4c89e351d27d32063c678)
This commit is contained in:
hondacrx
2022-06-01 15:42:51 -04:00
parent 812d98f5b5
commit b892fc20c0
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7243,7 +7243,7 @@ namespace Game.Spells
if (m_originalCaster != null && m_damage > 0)
{
if (spellEffectInfo.IsTargetingArea() || spellEffectInfo.IsAreaAuraEffect() || spellEffectInfo.IsEffect(SpellEffectName.PersistentAreaAura))
if (spellEffectInfo.IsTargetingArea() || spellEffectInfo.IsAreaAuraEffect() || spellEffectInfo.IsEffect(SpellEffectName.PersistentAreaAura) || m_spellInfo.HasAttribute(SpellAttr5.TreatAsAreaEffect))
{
m_damage = unit.CalculateAOEAvoidance(m_damage, (uint)m_spellInfo.SchoolMask, m_originalCaster.GetGUID());