Scripts/Spells: Update hunter talent Surging Shots

This commit is contained in:
luis
2026-09-26 20:28:14 -03:00
parent cd572e8c6c
commit f2abcf67f6
@@ -1699,6 +1699,11 @@ class spell_hun_surging_shots : public AuraScript
return ValidateSpellInfo({ SPELL_HUNTER_RAPID_FIRE });
}
static bool RollProc(AuraScript const&, AuraEffect const* aurEff, ProcEventInfo const& /*procInfo*/)
{
return roll_chance(aurEff->GetAmount());
}
void HandleProc(ProcEventInfo const& /*eventInfo*/) const
{
GetTarget()->GetSpellHistory()->ResetCooldown(SPELL_HUNTER_RAPID_FIRE, true);
@@ -1707,6 +1712,7 @@ class spell_hun_surging_shots : public AuraScript
void Register() override
{
OnProc += AuraProcFn(spell_hun_surging_shots::HandleProc);
DoCheckEffectProc += AuraCheckEffectProcFn(spell_hun_surging_shots::RollProc, EFFECT_2, SPELL_AURA_DUMMY);
}
};