Scripts/Spells: Implemented Priest talent Protective Light

Port From (https://github.com/TrinityCore/TrinityCore/commit/4fea4fb567d09663383ec615dac017ca37140b59)
This commit is contained in:
hondacrx
2024-02-23 18:24:17 -05:00
parent 78a10c7b5a
commit 511a5c2cec
+21
View File
@@ -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
{