Skip to content

Commit e7cb86d

Browse files
committed
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
1 parent 0ca034e commit e7cb86d

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Icy Grip Jump
2+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_sindragosa_icy_grip_jump';
3+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
4+
(70122, 'spell_sindragosa_icy_grip_jump');

src/server/scripts/Northrend/IcecrownCitadel/boss_sindragosa.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,31 @@ class spell_sindragosa_icy_grip : public SpellScript
13591359
}
13601360
};
13611361

1362+
// 70122 - Icy Grip Jump
1363+
class spell_sindragosa_icy_grip_jump : public SpellScript
1364+
{
1365+
PrepareSpellScript(spell_sindragosa_icy_grip_jump);
1366+
1367+
void HandleEffect(SpellEffIndex effIndex)
1368+
{
1369+
PreventHitDefaultEffect(effIndex);
1370+
1371+
Unit* target = GetHitUnit();
1372+
Unit* caster = GetCaster();
1373+
if (!target || !caster)
1374+
return;
1375+
1376+
Position destination = target->GetPosition();
1377+
destination.m_positionZ += 1.5f;
1378+
caster->GetMotionMaster()->MoveJump(destination, caster->GetExactDist2d(destination), 10.f);
1379+
}
1380+
1381+
void Register() override
1382+
{
1383+
OnEffectLaunchTarget += SpellEffectFn(spell_sindragosa_icy_grip_jump::HandleEffect, EFFECT_0, SPELL_EFFECT_JUMP);
1384+
}
1385+
};
1386+
13621387
class MysticBuffetTargetFilter
13631388
{
13641389
public:
@@ -1597,6 +1622,7 @@ void AddSC_boss_sindragosa()
15971622
RegisterSpellScript(spell_sindragosa_frost_beacon);
15981623
RegisterSpellScript(spell_sindragosa_ice_tomb_trap);
15991624
RegisterSpellScript(spell_sindragosa_icy_grip);
1625+
RegisterSpellScript(spell_sindragosa_icy_grip_jump);
16001626
RegisterSpellScript(spell_sindragosa_mystic_buffet);
16011627
RegisterSpellScript(spell_rimefang_icy_blast);
16021628
RegisterSpellScript(spell_frostwarden_handler_order_whelp);

0 commit comments

Comments
 (0)