From 07e857dd637a0fe1cd50299e1e0d6adfc2e12796 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Wed, 4 Jun 2025 09:18:20 -0400 Subject: [PATCH] Core/Spells: Allow persistent area auras to apply all of their effects upon creation. Port From (https://github.com/TrinityCore/TrinityCore/commit/d8636d4cc603262da8454231d64bd09b604b25f7) --- Source/Game/Spells/SpellEffects.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index 769db55cc..03df46d8f 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -1136,7 +1136,9 @@ namespace Game.Spells return; Cypher.Assert(dynObjAura.GetDynobjOwner() != null); - dynObjAura._ApplyEffectForTargets(effectInfo.EffectIndex); + for (uint i = 0; i < m_spellInfo.GetEffects().Count; ++i) + if (m_spellInfo.GetEffect(i).IsEffect(SpellEffectName.PersistentAreaAura)) + dynObjAura._ApplyEffectForTargets(i); } [SpellEffectHandler(SpellEffectName.Energize)]