mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(Core/Spells): Add Target Processing (SMSG_SPELLLOGEXECUTE) to LAUNCH_TARGET phase. (#9765)
* Move EffectInterruptCast to LAUNCH_TARGET Phase. * Source: TrinityCore. * Fixes #8484
This commit is contained in:
@@ -895,11 +895,6 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
|
||||
}
|
||||
return;
|
||||
}
|
||||
// Spell Lock, handled in interrupt effect
|
||||
// launch is handled before hit triggers, thus silence removes current casted spell
|
||||
// and interrupt is unable to detect any cast and doesnt work
|
||||
case 24259:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3716,7 +3711,7 @@ void Spell::EffectHealMaxHealth(SpellEffIndex /*effIndex*/)
|
||||
|
||||
void Spell::EffectInterruptCast(SpellEffIndex effIndex)
|
||||
{
|
||||
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
|
||||
if (effectHandleMode != SPELL_EFFECT_HANDLE_LAUNCH_TARGET)
|
||||
return;
|
||||
|
||||
if (!unitTarget || !unitTarget->IsAlive())
|
||||
@@ -3747,10 +3742,6 @@ void Spell::EffectInterruptCast(SpellEffIndex effIndex)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Spell Lock
|
||||
if (m_spellInfo->Id == 19647)
|
||||
m_caster->CastSpell(unitTarget, m_spellInfo->Effects[EFFECT_1].TriggerSpell, true);
|
||||
}
|
||||
|
||||
void Spell::EffectSummonObjectWild(SpellEffIndex effIndex)
|
||||
|
||||
Reference in New Issue
Block a user