diff --git a/Source/Scripts/Spells/Priest.cs b/Source/Scripts/Spells/Priest.cs index 7357c768c..d7e90cc1c 100644 --- a/Source/Scripts/Spells/Priest.cs +++ b/Source/Scripts/Spells/Priest.cs @@ -116,6 +116,7 @@ namespace Scripts.Spells.Priest public const uint PrayerOfMendingAura = 41635; public const uint PrayerOfMendingHeal = 33110; public const uint PrayerOfMendingJump = 155793; + public const uint ProtectiveLightAura = 193065; public const uint PurgeTheWicked = 204197; public const uint PurgeTheWickedDummy = 204215; public const uint PurgeTheWickedPeriodic = 204213; @@ -2048,6 +2049,26 @@ namespace Scripts.Spells.Priest } } + [Script] // 193063 - Protective Light (Aura) + class spell_pri_protective_light : AuraScript + { + bool CheckEffectProc(AuraEffect aurEff, ProcEventInfo eventInfo) + { + return eventInfo.GetProcTarget() == GetCaster(); + } + + void HandleEffectProc(AuraEffect aurEff, ProcEventInfo eventInfo) + { + GetCaster().CastSpell(GetCaster(), SpellIds.ProtectiveLightAura, aurEff); + } + + public override void Register() + { + DoCheckEffectProc.Add(new(CheckEffectProc, 0, AuraType.Dummy)); + OnEffectProc.Add(new(HandleEffectProc, 0, AuraType.Dummy)); + } + } + [Script] // 405554 - Priest Holy 10.1 Class Set 2pc class spell_pri_holy_10_1_class_set_2pc : AuraScript {