From 155217c690b9dbddc0615f309248429adf074fb7 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sat, 27 Jul 2024 16:29:43 +0200 Subject: [PATCH] Spell: Allow spell_script_target for any SPELL_EFFECT_PERSISTENT_AREA_AURA --- src/game/Spells/SpellMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/Spells/SpellMgr.cpp b/src/game/Spells/SpellMgr.cpp index 024dbaaa9ee..4dfb07023e3 100644 --- a/src/game/Spells/SpellMgr.cpp +++ b/src/game/Spells/SpellMgr.cpp @@ -1914,6 +1914,12 @@ void SpellMgr::LoadSpellScriptTarget() bool targetfound = false; for (int i = 0; i < MAX_EFFECT_INDEX; ++i) { + if (spellProto->Effect[i] == SPELL_EFFECT_PERSISTENT_AREA_AURA) // always scriptable + { + targetfound = true; + break; + } + if (spellProto->EffectImplicitTargetA[i] == TARGET_UNIT_SCRIPT_NEAR_CASTER || spellProto->EffectImplicitTargetB[i] == TARGET_UNIT_SCRIPT_NEAR_CASTER || spellProto->EffectImplicitTargetA[i] == TARGET_LOCATION_SCRIPT_NEAR_CASTER ||