Skip to content

Commit

Permalink
Spell: Allow spell_script_target for any SPELL_EFFECT_PERSISTENT_AREA…
Browse files Browse the repository at this point in the history
…_AURA
  • Loading branch information
killerwife committed Jul 28, 2024
1 parent 3fadd9f commit 155217c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/Spells/SpellMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 155217c

Please sign in to comment.