Core/Spells: Add summoned DynamicObject to casters ChannelObjects if spell is channelled

This commit is contained in:
Shauren
2025-01-18 00:03:41 +01:00
committed by Ovahlord
parent a49dd60755
commit f156cbf593

View File

@@ -1529,6 +1529,9 @@ void Spell::EffectPersistentAA()
for (size_t i = 0; i < m_spellInfo->GetEffects().size(); ++i)
if (m_spellInfo->GetEffect(SpellEffIndex(i)).IsEffect(SPELL_EFFECT_PERSISTENT_AREA_AURA))
_dynObjAura->_ApplyEffectForTargets(i);
if (m_spellInfo->IsChanneled())
unitCaster->AddChannelObject(dynObj->GetGUID());
}
void Spell::EffectEnergize()