aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_dh.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_dh.cpp b/src/server/scripts/Spells/spell_dh.cpp
index 0344cddcda2..f8572d8fb66 100644
--- a/src/server/scripts/Spells/spell_dh.cpp
+++ b/src/server/scripts/Spells/spell_dh.cpp
@@ -1451,6 +1451,25 @@ class spell_dh_tactical_retreat : public SpellScript
}
};
+// 444931 - Unhindered Assault
+class spell_dh_unhindered_assault : public AuraScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_DH_FELBLADE });
+ }
+
+ void HandleOnProc(AuraEffect const* /*aurEff*/, ProcEventInfo const& /*eventInfo*/) const
+ {
+ GetTarget()->GetSpellHistory()->ResetCooldown(SPELL_DH_FELBLADE, true);
+ }
+
+ void Register() override
+ {
+ OnEffectProc += AuraEffectProcFn(spell_dh_unhindered_assault::HandleOnProc, EFFECT_0, SPELL_AURA_DUMMY);
+ }
+};
+
// 198813 - Vengeful Retreat
class spell_dh_vengeful_retreat_damage : public SpellScript
{
@@ -1507,6 +1526,7 @@ void AddSC_demon_hunter_spell_scripts()
RegisterSpellScript(spell_dh_sigil_of_chains);
RegisterSpellScript(spell_dh_student_of_suffering);
RegisterSpellScript(spell_dh_tactical_retreat);
+ RegisterSpellScript(spell_dh_unhindered_assault);
RegisterSpellScript(spell_dh_vengeful_retreat_damage);
RegisterAreaTriggerAI(areatrigger_dh_darkness);