From ba9e8222e5e0c907d37ef46ef3a35404f06604f9 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 27 Feb 2024 13:33:56 -0500 Subject: [PATCH] Scripts/Spells: Fix Shield of the Righteous armor bonus Port From (https://github.com/TrinityCore/TrinityCore/commit/d7d382ea43f945b890aa5227459ec27df178e032) --- Source/Scripts/Spells/Paladin.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Source/Scripts/Spells/Paladin.cs b/Source/Scripts/Spells/Paladin.cs index d84277cd8..979e5de47 100644 --- a/Source/Scripts/Spells/Paladin.cs +++ b/Source/Scripts/Spells/Paladin.cs @@ -80,6 +80,7 @@ namespace Scripts.Spells.Paladin public const uint RighteousDefenseTaunt = 31790; public const uint RighteousVerdictAura = 267611; public const uint SealOfRighteousness = 25742; + public const uint ShieldOfTheRightrousArmor = 132403; public const uint ShieldOfVengeanceDamage = 184689; public const uint TemplarVerdictDamage = 224266; public const uint T302PHeartfireDamage = 408399; @@ -1217,6 +1218,25 @@ namespace Scripts.Spells.Paladin } } + [Script] // 53600 - Shield of the Righteous + class spell_pal_shield_of_the_righteous : SpellScript + { + public override bool Validate(SpellInfo spellInfo) + { + return ValidateSpellInfo(SpellIds.ShieldOfTheRightrousArmor); + } + + void HandleArmor() + { + GetCaster().CastSpell(GetCaster(), SpellIds.ShieldOfTheRightrousArmor, true); + } + + public override void Register() + { + AfterCast.Add(new(HandleArmor)); + } + } + [Script] // 184662 - Shield of Vengeance class spell_pal_shield_of_vengeance : AuraScript {