Skip to content

Commit b6bb35b

Browse files
CraftedROzana244
andauthored
Core/Spells: Allow persistent area auras to apply all of their effects upon creation. (#30422)
This fixes the issue where the area auras do not instantly apply their effects. Actually, they were only applying the last SPELL_EFFECT_PERSISTENT_AREA_AURA; Flare and Frost Trap have 2 and 3 SPELL_EFFECT_PERSISTENT_AREA_AURA effects respectively, so only the last one would be applied. Co-Authored-By: zana244 <[email protected]>
1 parent 3c9bf7b commit b6bb35b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/game/Spells/SpellEffects.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,9 @@ void Spell::EffectPersistentAA()
16001600
return;
16011601

16021602
ASSERT(_dynObjAura->GetDynobjOwner());
1603-
_dynObjAura->_ApplyEffectForTargets(effectInfo->EffectIndex);
1603+
for (size_t i = 0; i < m_spellInfo->GetEffects().size(); ++i)
1604+
if (m_spellInfo->GetEffect(SpellEffIndex(i)).IsEffect(SPELL_EFFECT_PERSISTENT_AREA_AURA))
1605+
_dynObjAura->_ApplyEffectForTargets(i);
16041606
}
16051607

16061608
void Spell::EffectEnergize()

0 commit comments

Comments
 (0)