Skip to content

Commit

Permalink
Scripts/Spells: Implemented Monk Tiger's Lust root/snare removal (Tri…
Browse files Browse the repository at this point in the history
  • Loading branch information
aquadeus authored Oct 24, 2024
1 parent c788855 commit dd6d478
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/updates/world/master/2024_10_24_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `spell_id`=116841 AND `ScriptName`='spell_monk_tigers_lust';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(116841, 'spell_monk_tigers_lust');
15 changes: 15 additions & 0 deletions src/server/scripts/Spells/spell_monk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,20 @@ class spell_monk_stagger_debuff_aura : public AuraScript
}
};

// 116841 - Tiger's Lust
class spell_monk_tigers_lust : public SpellScript
{
void HandleRemoveImpairingAuras(SpellEffIndex /*effIndex*/)
{
GetHitUnit()->RemoveMovementImpairingAuras(true);
}

void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_monk_tigers_lust::HandleRemoveImpairingAuras, EFFECT_0, SPELL_EFFECT_APPLY_AURA);
}
};

void AddSC_monk_spell_scripts()
{
RegisterSpellScript(spell_monk_crackling_jade_lightning);
Expand All @@ -550,4 +564,5 @@ void AddSC_monk_spell_scripts()
RegisterSpellScript(spell_monk_stagger);
RegisterSpellScript(spell_monk_stagger_damage_aura);
RegisterSpellScript(spell_monk_stagger_debuff_aura);
RegisterSpellScript(spell_monk_tigers_lust);
}

0 comments on commit dd6d478

Please sign in to comment.