Scripts/Spells: Implemented Monk Tiger's Lust root/snare removal (#30370)

This commit is contained in:
Aqua Deus
2024-10-24 22:31:21 +02:00
committed by GitHub
parent c78885566f
commit dd6d478980
2 changed files with 18 additions and 0 deletions
@@ -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
View File
@@ -536,6 +536,20 @@ private:
}
};
// 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);
@@ -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);
}