Core/Spells: Allow persistent area auras to apply all of their effects upon creation.

Port From (https://github.com/TrinityCore/TrinityCore/commit/d8636d4cc603262da8454231d64bd09b604b25f7)
This commit is contained in:
Hondacrx
2025-06-04 09:18:20 -04:00
parent 8485185889
commit 07e857dd63
+3 -1
View File
@@ -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)]