Skip to content

Commit

Permalink
Scripts/Spells: Implement demon hunter talent "Unhindered Assault" (T…
Browse files Browse the repository at this point in the history
  • Loading branch information
aquadeus authored Jan 17, 2025
1 parent 95292cd commit a3b3659
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sql/updates/world/master/2025_01_17_03_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dh_unhindered_assault';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(444931, 'spell_dh_unhindered_assault');

DELETE FROM `spell_proc` WHERE `SpellId` IN (444931);
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
(444931,0x00,107,0x00000008,0x00000000,0x00000000,0x00000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0,0,0,0); -- Unhindered Assault
20 changes: 20 additions & 0 deletions src/server/scripts/Spells/spell_dh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a3b3659

Please sign in to comment.