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:
@@ -1145,6 +1145,9 @@ namespace Game.Spells
|
||||
for (uint i = 0; i < m_spellInfo.GetEffects().Count; ++i)
|
||||
if (m_spellInfo.GetEffect(i).IsEffect(SpellEffectName.PersistentAreaAura))
|
||||
dynObjAura._ApplyEffectForTargets(i);
|
||||
|
||||
if (m_spellInfo.IsChanneled())
|
||||
unitCaster.AddChannelObject(dynObj.GetGUID());
|
||||
}
|
||||
|
||||
[SpellEffectHandler(SpellEffectName.Energize)]
|
||||
|
||||
Reference in New Issue
Block a user