fix(Core/Spells): Fix SPELL_EFFECT_LEAP_BACK not working on targeted … (#22389)
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
--
|
||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_chapter5_rebuke' AND `spell_id` = 53680;
|
||||||
@@ -5037,7 +5037,7 @@ void Spell::EffectLeapBack(SpellEffIndex effIndex)
|
|||||||
float speedxy = m_spellInfo->Effects[effIndex].MiscValue / 10.0f;
|
float speedxy = m_spellInfo->Effects[effIndex].MiscValue / 10.0f;
|
||||||
float speedz = damage / 10.0f;
|
float speedz = damage / 10.0f;
|
||||||
//1891: Disengage
|
//1891: Disengage
|
||||||
m_caster->JumpTo(speedxy, speedz, m_spellInfo->SpellFamilyName != SPELLFAMILY_HUNTER);
|
unitTarget->JumpTo(speedxy, speedz, m_spellInfo->SpellFamilyName != SPELLFAMILY_HUNTER);
|
||||||
|
|
||||||
if (m_caster->IsPlayer())
|
if (m_caster->IsPlayer())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1200,23 +1200,6 @@ class spell_chapter5_light_of_dawn_aura : public AuraScript
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class spell_chapter5_rebuke : public SpellScript
|
|
||||||
{
|
|
||||||
PrepareSpellScript(spell_chapter5_rebuke);
|
|
||||||
|
|
||||||
void HandleLeapBack(SpellEffIndex effIndex)
|
|
||||||
{
|
|
||||||
PreventHitEffect(effIndex);
|
|
||||||
if (Unit* unitTarget = GetHitUnit())
|
|
||||||
unitTarget->KnockbackFrom(2282.86f, -5263.45f, 40.0f, 8.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Register() override
|
|
||||||
{
|
|
||||||
OnEffectLaunchTarget += SpellEffectFn(spell_chapter5_rebuke::HandleLeapBack, EFFECT_0, SPELL_EFFECT_LEAP_BACK);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// 58552 - Return to Orgrimmar
|
// 58552 - Return to Orgrimmar
|
||||||
// 58533 - Return to Stormwind
|
// 58533 - Return to Stormwind
|
||||||
enum ReturnToCapital
|
enum ReturnToCapital
|
||||||
@@ -1317,6 +1300,5 @@ void AddSC_the_scarlet_enclave_c5()
|
|||||||
{
|
{
|
||||||
new npc_highlord_darion_mograine();
|
new npc_highlord_darion_mograine();
|
||||||
RegisterSpellScript(spell_chapter5_light_of_dawn_aura);
|
RegisterSpellScript(spell_chapter5_light_of_dawn_aura);
|
||||||
RegisterSpellScript(spell_chapter5_rebuke);
|
|
||||||
RegisterSpellScript(spell_chapter5_return_to_capital);
|
RegisterSpellScript(spell_chapter5_return_to_capital);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user