Scripts/Spells: Update hunter talent Surging Shots
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user