aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-05-28 21:14:16 +0200
committerGitHub <noreply@github.com>2025-05-28 21:14:16 +0200
commit58c627bff5ab9c78116aa02542ffa70f5bec8931 (patch)
tree456524c0aabf19dfde8810bf24a9210c87e9ff14 /src
parentf7cd7661b8429b9bbca559ccdeb453718a1daa63 (diff)
Scripts/Spells: Implement paladin talent A just reward (#30954)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_paladin.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp
index bbe85994bd9..4d636726700 100644
--- a/src/server/scripts/Spells/spell_paladin.cpp
+++ b/src/server/scripts/Spells/spell_paladin.cpp
@@ -39,6 +39,7 @@
enum PaladinSpells
{
+ SPELL_PALADIN_A_JUST_REWARD_HEAL = 469413,
SPELL_PALADIN_ARDENT_DEFENDER_HEAL = 66235,
SPELL_PALADIN_ART_OF_WAR_TRIGGERED = 231843,
SPELL_PALADIN_AVENGERS_SHIELD = 31935,
@@ -145,6 +146,28 @@ enum PaladinSpellLabel
SPELL_LABEL_PALADIN_T30_2P_HEARTFIRE = 2598
};
+// 469411 - A Just Reward
+class spell_pal_a_just_reward : public AuraScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_PALADIN_A_JUST_REWARD_HEAL });
+ }
+
+ static void HandleEffectProc(AuraEffect const* aurEff, ProcEventInfo const& eventInfo)
+ {
+ eventInfo.GetActor()->CastSpell(eventInfo.GetActionTarget(), SPELL_PALADIN_A_JUST_REWARD_HEAL, CastSpellExtraArgsInit{
+ .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR,
+ .TriggeringAura = aurEff
+ });
+ }
+
+ void Register() override
+ {
+ OnEffectProc += AuraEffectProcFn(spell_pal_a_just_reward::HandleEffectProc, EFFECT_0, SPELL_AURA_DUMMY);
+ }
+};
+
// 31850 - Ardent Defender
class spell_pal_ardent_defender : public AuraScript
{
@@ -1765,6 +1788,7 @@ class spell_pal_zeal : public AuraScript
void AddSC_paladin_spell_scripts()
{
+ RegisterSpellScript(spell_pal_a_just_reward);
RegisterSpellScript(spell_pal_ardent_defender);
RegisterSpellScript(spell_pal_art_of_war);
RegisterAreaTriggerAI(areatrigger_pal_ashen_hallow);