mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Scripts/Spells: Implemented Priest talent Protective Light (#29630)
This commit is contained in:
@@ -138,6 +138,7 @@ enum PriestSpells
|
||||
SPELL_PRIEST_PRAYER_OF_MENDING_AURA = 41635,
|
||||
SPELL_PRIEST_PRAYER_OF_MENDING_HEAL = 33110,
|
||||
SPELL_PRIEST_PRAYER_OF_MENDING_JUMP = 155793,
|
||||
SPELL_PRIEST_PROTECTIVE_LIGHT_AURA = 193065,
|
||||
SPELL_PRIEST_PURGE_THE_WICKED = 204197,
|
||||
SPELL_PRIEST_PURGE_THE_WICKED_DUMMY = 204215,
|
||||
SPELL_PRIEST_PURGE_THE_WICKED_PERIODIC = 204213,
|
||||
@@ -2136,6 +2137,26 @@ class spell_pri_prayer_of_mending_jump : public spell_pri_prayer_of_mending_Spel
|
||||
}
|
||||
};
|
||||
|
||||
// 193063 - Protective Light (Aura)
|
||||
class spell_pri_protective_light : public AuraScript
|
||||
{
|
||||
bool CheckEffectProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
|
||||
{
|
||||
return eventInfo.GetProcTarget() == GetCaster();
|
||||
}
|
||||
|
||||
void HandleEffectProc(AuraEffect* aurEff, ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
GetCaster()->CastSpell(GetCaster(), SPELL_PRIEST_PROTECTIVE_LIGHT_AURA, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckEffectProc += AuraCheckEffectProcFn(spell_pri_protective_light::CheckEffectProc, EFFECT_0, SPELL_AURA_DUMMY);
|
||||
OnEffectProc += AuraEffectProcFn(spell_pri_protective_light::HandleEffectProc, EFFECT_0, SPELL_AURA_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
// 405554 - Priest Holy 10.1 Class Set 2pc
|
||||
class spell_pri_holy_10_1_class_set_2pc : public AuraScript
|
||||
{
|
||||
@@ -2838,6 +2859,7 @@ void AddSC_priest_spell_scripts()
|
||||
RegisterSpellScript(spell_pri_prayer_of_mending_dummy);
|
||||
RegisterSpellAndAuraScriptPair(spell_pri_prayer_of_mending, spell_pri_prayer_of_mending_aura);
|
||||
RegisterSpellScript(spell_pri_prayer_of_mending_jump);
|
||||
RegisterSpellScript(spell_pri_protective_light);
|
||||
RegisterSpellScript(spell_pri_holy_10_1_class_set_2pc);
|
||||
RegisterSpellScript(spell_pri_holy_10_1_class_set_2pc_chooser);
|
||||
RegisterSpellScript(spell_pri_holy_10_1_class_set_4pc);
|
||||
|
||||
Reference in New Issue
Block a user