Scripts/Spells: Implemented Monk Tiger's Lust root/snare removal (#30370)
This commit is contained in:
@@ -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');
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user