Scripts/Spells: Fix Shield of the Righteous armor bonus
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7d382ea43f945b890aa5227459ec27df178e032)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user