From 511a5c2cecf727b3ec2f1bdc696e2fd57f2e6d3f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 23 Feb 2024 18:24:17 -0500 Subject: [PATCH] Scripts/Spells: Implemented Priest talent Protective Light Port From (https://github.com/TrinityCore/TrinityCore/commit/4fea4fb567d09663383ec615dac017ca37140b59) --- Source/Scripts/Spells/Priest.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 {