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

Port From (https://github.com/TrinityCore/TrinityCore/commit/333aaaaefd4023dcb719f3dbaeab829c3d26e77a)
This commit is contained in:
Hondacrx
2025-06-04 09:27:48 -04:00
parent e16f81ecda
commit e098533a27
+3
View File
@@ -1145,6 +1145,9 @@ namespace Game.Spells
for (uint i = 0; i < m_spellInfo.GetEffects().Count; ++i) for (uint i = 0; i < m_spellInfo.GetEffects().Count; ++i)
if (m_spellInfo.GetEffect(i).IsEffect(SpellEffectName.PersistentAreaAura)) if (m_spellInfo.GetEffect(i).IsEffect(SpellEffectName.PersistentAreaAura))
dynObjAura._ApplyEffectForTargets(i); dynObjAura._ApplyEffectForTargets(i);
if (m_spellInfo.IsChanneled())
unitCaster.AddChannelObject(dynObj.GetGUID());
} }
[SpellEffectHandler(SpellEffectName.Energize)] [SpellEffectHandler(SpellEffectName.Energize)]