aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMematoru23 <127750549+Mematoru23@users.noreply.github.com>2024-02-05 18:00:48 +0200
committerGitHub <noreply@github.com>2024-02-05 17:00:48 +0100
commite42cd2ffcc69947611fd5bcd67649c57c3c45d97 (patch)
tree211605c0acacd87f12164eaf35b28f1cd7111f2c /src
parentdabb4dd5f61352b67c5649fbe54fafa51a55c2de (diff)
Scripts/Spells: Implemented Priest talent Blaze of Light (#29649)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index edb839cf3fa..9347c26bb7d 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -52,6 +52,9 @@ enum PriestSpells
SPELL_PRIEST_ATONEMENT_HEAL = 81751,
SPELL_PRIEST_BENEDICTION = 193157,
SPELL_PRIEST_BENEVOLENCE = 415416,
+ SPELL_PRIEST_BLAZE_OF_LIGHT = 215768,
+ SPELL_PRIEST_BLAZE_OF_LIGHT_INCREASE = 355851,
+ SPELL_PRIEST_BLAZE_OF_LIGHT_DECREASE = 356084,
SPELL_PRIEST_BLESSED_HEALING = 70772,
SPELL_PRIEST_BLESSED_LIGHT = 196813,
SPELL_PRIEST_BODY_AND_SOUL = 64129,
@@ -619,6 +622,36 @@ class spell_pri_benediction : public SpellScript
}
};
+// 215768 - Blaze of Light
+class spell_pri_blaze_of_light : public AuraScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo(
+ {
+ SPELL_PRIEST_BLAZE_OF_LIGHT_DECREASE,
+ SPELL_PRIEST_BLAZE_OF_LIGHT_INCREASE
+ });
+ }
+
+ void HandleProc(ProcEventInfo& eventInfo)
+ {
+ Unit* procTarget = eventInfo.GetProcTarget();
+ if (!procTarget)
+ return;
+
+ if (GetTarget()->IsValidAttackTarget(procTarget))
+ GetTarget()->CastSpell(procTarget, SPELL_PRIEST_BLAZE_OF_LIGHT_DECREASE, TriggerCastFlags(TRIGGERED_CAST_DIRECTLY | TRIGGERED_IGNORE_CAST_IN_PROGRESS));
+ else
+ GetTarget()->CastSpell(procTarget, SPELL_PRIEST_BLAZE_OF_LIGHT_INCREASE, TriggerCastFlags(TRIGGERED_CAST_DIRECTLY | TRIGGERED_IGNORE_CAST_IN_PROGRESS));
+ }
+
+ void Register() override
+ {
+ OnProc += AuraProcFn(spell_pri_blaze_of_light::HandleProc);
+ }
+};
+
// 204883 - Circle of Healing
class spell_pri_circle_of_healing : public SpellScript
{
@@ -2836,6 +2869,7 @@ void AddSC_priest_spell_scripts()
RegisterSpellScript(spell_pri_atonement_effect_aura);
RegisterSpellScript(spell_pri_atonement_passive);
RegisterSpellScript(spell_pri_benediction);
+ RegisterSpellScript(spell_pri_blaze_of_light);
RegisterSpellScript(spell_pri_circle_of_healing);
RegisterSpellScript(spell_pri_divine_image);
RegisterSpellScript(spell_pri_divine_image_spell_triggered);