mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Scripts/Spells: Implemented Priest talent Blaze of Light (#29649)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user