From b950db47190f0c4bfda2c21d533ed2f277076901 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 942d7fa851e..42bae174315 100644 --- a/src/game/Spells/SpellMgr.cpp +++ b/src/game/Spells/SpellMgr.cpp @@ -1996,6 +1996,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 ||