aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-04-18 16:05:05 +0200
committerGitHub <noreply@github.com>2025-04-18 16:05:05 +0200
commitd8b790ef0c3ba94da5642389f43eb8c4be506f01 (patch)
tree9b22ec1bc8deede45f1be0ebeb51fadd14a365c8 /src
parentf2ede236abb922233be53c4879b2d0be1528fd02 (diff)
Scripts/Spells: Implement hunter talent Surging Shots (#30787)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index c13da9aafa5..2060a121f69 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -68,6 +68,7 @@ enum HunterSpells
SPELL_HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF = 55711,
SPELL_HUNTER_POSTHASTE_INCREASE_SPEED = 118922,
SPELL_HUNTER_POSTHASTE_TALENT = 109215,
+ SPELL_HUNTER_RAPID_FIRE = 257044,
SPELL_HUNTER_RAPID_FIRE_DAMAGE = 257045,
SPELL_HUNTER_RAPID_FIRE_ENERGIZE = 263585,
SPELL_HUNTER_STEADY_SHOT = 56641,
@@ -822,6 +823,25 @@ class spell_hun_steady_shot : public SpellScript
}
};
+// 391559 - Surging Shots
+class spell_hun_surging_shots : public AuraScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_HUNTER_RAPID_FIRE });
+ }
+
+ void HandleProc(ProcEventInfo const& /*eventInfo*/) const
+ {
+ GetTarget()->GetSpellHistory()->ResetCooldown(SPELL_HUNTER_RAPID_FIRE, true);
+ }
+
+ void Register() override
+ {
+ OnProc += AuraProcFn(spell_hun_surging_shots::HandleProc);
+ }
+};
+
// 1515 - Tame Beast
class spell_hun_tame_beast : public SpellScript
{
@@ -986,6 +1006,7 @@ void AddSC_hunter_spell_scripts()
RegisterSpellScript(spell_hun_scatter_shot);
RegisterSpellScript(spell_hun_scrappy);
RegisterSpellScript(spell_hun_steady_shot);
+ RegisterSpellScript(spell_hun_surging_shots);
RegisterSpellScript(spell_hun_tame_beast);
RegisterSpellScript(spell_hun_t9_4p_bonus);
RegisterSpellScript(spell_hun_t29_2p_marksmanship_bonus);