From e7cb86d369b8e5e92daa3a8b9f123fea380fcc8c Mon Sep 17 00:00:00 2001 From: ccrs Date: Fri, 10 Oct 2025 18:36:33 +0200 Subject: Scripts/ICC: override default jump behavior in Sindragosa's Icy Grip Jump - she pulls everyone up and into the model, not just to the unit's margin --- .../Northrend/IcecrownCitadel/boss_sindragosa.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp index c3a6050d473..d14184d4120 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp @@ -1359,6 +1359,31 @@ class spell_sindragosa_icy_grip : public SpellScript } }; +// 70122 - Icy Grip Jump +class spell_sindragosa_icy_grip_jump : public SpellScript +{ + PrepareSpellScript(spell_sindragosa_icy_grip_jump); + + void HandleEffect(SpellEffIndex effIndex) + { + PreventHitDefaultEffect(effIndex); + + Unit* target = GetHitUnit(); + Unit* caster = GetCaster(); + if (!target || !caster) + return; + + Position destination = target->GetPosition(); + destination.m_positionZ += 1.5f; + caster->GetMotionMaster()->MoveJump(destination, caster->GetExactDist2d(destination), 10.f); + } + + void Register() override + { + OnEffectLaunchTarget += SpellEffectFn(spell_sindragosa_icy_grip_jump::HandleEffect, EFFECT_0, SPELL_EFFECT_JUMP); + } +}; + class MysticBuffetTargetFilter { public: @@ -1597,6 +1622,7 @@ void AddSC_boss_sindragosa() RegisterSpellScript(spell_sindragosa_frost_beacon); RegisterSpellScript(spell_sindragosa_ice_tomb_trap); RegisterSpellScript(spell_sindragosa_icy_grip); + RegisterSpellScript(spell_sindragosa_icy_grip_jump); RegisterSpellScript(spell_sindragosa_mystic_buffet); RegisterSpellScript(spell_rimefang_icy_blast); RegisterSpellScript(spell_frostwarden_handler_order_whelp); -- cgit v1.2.3