aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-05-12 14:33:50 +0200
committerGitHub <noreply@github.com>2025-05-12 14:33:50 +0200
commit1501843154157933304a3954205c3b1972bf4ed8 (patch)
tree5db2354137be539a1a6eda0494ce054bf4560511 /src
parent557dfb0290d401ee63c238715fab047245a41ebc (diff)
Scripts/Spells: Fix proc of hunter talent Bullseye (#30788)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index f1e96c9cb20..90c2d9e052f 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -208,6 +208,20 @@ class spell_hun_aspect_of_the_turtle : public AuraScript
}
};
+// 204089 - Bullseye
+class spell_hun_bullseye : public AuraScript
+{
+ static bool CheckEffectProc(AuraEffect const* aurEff, ProcEventInfo const& eventInfo)
+ {
+ return eventInfo.GetActionTarget()->HealthBelowPct(aurEff->GetAmount());
+ }
+
+ void Register() override
+ {
+ DoCheckEffectProc += AuraCheckEffectProcFn(spell_hun_bullseye::CheckEffectProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
+ }
+};
+
// 378750 - Cobra Sting
class spell_hun_cobra_sting : public AuraScript
{
@@ -1185,6 +1199,7 @@ void AddSC_hunter_spell_scripts()
RegisterSpellScript(spell_hun_aspect_cheetah);
RegisterSpellScript(spell_hun_aspect_of_the_fox);
RegisterSpellScript(spell_hun_aspect_of_the_turtle);
+ RegisterSpellScript(spell_hun_bullseye);
RegisterSpellScript(spell_hun_cobra_sting);
RegisterSpellScript(spell_hun_concussive_shot);
RegisterSpellScript(spell_hun_emergency_salve);