Skip to content

Commit 155217c

Browse files
committed
Spell: Allow spell_script_target for any SPELL_EFFECT_PERSISTENT_AREA_AURA
1 parent 3fadd9f commit 155217c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/game/Spells/SpellMgr.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,12 @@ void SpellMgr::LoadSpellScriptTarget()
19141914
bool targetfound = false;
19151915
for (int i = 0; i < MAX_EFFECT_INDEX; ++i)
19161916
{
1917+
if (spellProto->Effect[i] == SPELL_EFFECT_PERSISTENT_AREA_AURA) // always scriptable
1918+
{
1919+
targetfound = true;
1920+
break;
1921+
}
1922+
19171923
if (spellProto->EffectImplicitTargetA[i] == TARGET_UNIT_SCRIPT_NEAR_CASTER ||
19181924
spellProto->EffectImplicitTargetB[i] == TARGET_UNIT_SCRIPT_NEAR_CASTER ||
19191925
spellProto->EffectImplicitTargetA[i] == TARGET_LOCATION_SCRIPT_NEAR_CASTER ||

0 commit comments

Comments
 (0)