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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user