-- PaladinProtection.lua -- July 2024 local addon, ns = ... local Hekili = _G[ addon ] local class, state = Hekili.Class, Hekili.State local spec = Hekili:NewSpecialization( 66 ) -- Resources spec:RegisterResource( Enum.PowerType.Mana ) spec:RegisterResource( Enum.PowerType.HolyPower ) spec:RegisterTalents( { -- Paladin Talents auras_of_the_resolute = { 81599, 385633, 1 }, -- [317920] Interrupt and Silence effects on party and raid members within $a1 yds are $s1% shorter. $?a339124[Fear effects are also reduced.][] avenging_wrath = { 81606, 31884 , 1 }, -- Call upon the Light and become an avatar of retribution, increasing your damage and healing done by $s1% for $31884d, and allowing Hammer of Wrath to be cast on any target.; Combines with other Avenging Wrath abilities, granting all known Avenging Wrath effects while active. blessing_of_freedom = { 81600, 1044 , 1 }, -- Blesses a party or raid member, granting immunity to movement impairing effects $?s199325[and increasing movement speed by $199325m1% ][]for $d. blessing_of_protection = { 81616, 1022 , 1 }, -- Blesses a party or raid member, granting immunity to Physical damage and harmful effects for $d.; Cannot be used on a target with Forbearance. Causes Forbearance for $25771d.$?c2[; Shares a cooldown with Blessing of Spellwarding.][] blessing_of_sacrifice = { 81614, 6940 , 1 }, -- Blesses a party or raid member, reducing their damage taken by $s1%, but you suffer ${100*$e1}% of damage prevented.; Last $d, or until transferred damage would cause you to fall below $s3% health. blinding_light = { 81598, 115750, 1 }, -- Emits dazzling light in all directions, blinding enemies within $105421A1 yds, causing them to wander disoriented for $105421d. cavalier = { 81605, 230332, 1 }, -- Divine Steed now has ${1+$m1} charges. crusader_aura = { 81601, 32223 , 1 }, -- Increases mounted speed by $s1% for all party and raid members within $a1 yds. divine_steed = { 81632, 190784, 1 }, -- Leap atop your Charger for $221883d, increasing movement speed by $221883s4%. Usable while indoors or in combat. divine_toll = { 81496, 375576, 1 }, -- Instantly cast $?a137029[Holy Shock]?a137028[Avenger's Shield]?a137027[Judgment][Holy Shock, Avenger's Shield, or Judgment] on up to $s1 targets within $A2 yds.$?(a384027|a386738|a387893)[; After casting Divine Toll, you instantly cast ][]$?(a387893&c1)[Holy Shock]?(a386738&c2)[Avenger's Shield]?(a384027&c3)[Judgment][]$?a387893[ every $387895t1 sec. This effect lasts $387895d.][]$?a384027[ every $384029t1 sec. This effect lasts $384029d.][]$?a386738[ every $386730t1 sec. This effect lasts $386730d.][]$?c3[; Divine Toll's Judgment deals $326011s1% increased damage.][]$?c2[; Generates $s5 Holy Power per target hit.][] fading_light = { 81623, 405768, 1 }, -- $@spellicon385127$@spellname385127:; Blessing of Dawn increases the damage and healing of your next Holy Power spending ability by an additional $s1%.; $@spellicon385126$@spellname385126:; Blessing of Dusk causes your Holy Power generating abilities to also grant an absorb shield for $s2% of damage or healing dealt. faiths_armor = { 81495, 406101, 1 }, -- [379017] $?c2[Shield of the Righteous][Word of Glory] grants $s1% bonus armor for $d. fist_of_justice = { 81602, 234299, 2 }, -- Each Holy Power spent reduces the remaining cooldown on Hammer of Justice by $s1 sec. golden_path = { 81610, 377128, 1 }, -- Consecration heals you and $s2 allies within it for $ every $26573t1 sec. hammer_of_wrath = { 81510, 24275 , 1 }, -- Hurls a divine hammer that strikes an enemy for $ $?s403664[Holystrike][Holy] damage. Only usable on enemies that have less than 20% health$?s326730[, or during Avenging Wrath][].; Generates $s2 Holy Power. holy_aegis = { 81609, 385515, 2 }, -- Armor and critical strike chance increased by $s2%. improved_blessing_of_protection = { 81617, 384909, 1 }, -- Reduces the cooldown of Blessing of Protection$?c2[ and Blessing of Spellwarding][] by ${-$s1/1000} sec. incandescence = { 81628, 385464, 1 }, -- Each Holy Power you spend has a $s1% chance to cause your $?s198034[Divine Hammer][Consecration] to flare up, dealing $385816s1 Holy damage to up to $s1 enemies standing within it. judgment_of_light = { 81608, 183778, 1 }, -- Judgment causes the next $196941N successful attacks against the target to heal the attacker for $183811s1. $@switch<$s2>[][This effect can only occur once every $s1 sec on each target.] justification = { 81509, 377043, 1 }, -- Judgment's damage is increased by $s1%. lay_on_hands = { 81597, 633 , 1 }, -- Heals a friendly target for an amount equal to $s2% your maximum health.$?a387791[; Grants the target $387792s1% increased armor for $387792d.][]; Cannot be used on a target with Forbearance. Causes Forbearance for $25771d. obduracy = { 81630, 385427, 1 }, -- Speed increased by $s3% and damage taken from area of effect attacks reduced by $s2%. punishment = { 93165, 403530, 1 }, -- Successfully interrupting an enemy with Rebuke$?s31935[ or Avenger's Shield][] casts an extra $?s204019[Blessed Hammer]?s53595[Hammer of the Righteous][Crusader Strike]. rebuke = { 81604, 96231 , 1 }, -- Interrupts spellcasting and prevents any spell in that school from being cast for $d. recompense = { 81607, 384914, 1 }, -- After your Blessing of Sacrifice ends, $s1% of the total damage it diverted is added to your next Judgment as bonus damage, or your next Word of Glory as bonus healing.; This effect's bonus damage cannot exceed $s3% of your maximum health and its bonus healing cannot exceed $s4% of your maximum health. repentance = { 81598, 20066 , 1 }, -- Forces an enemy target to meditate, incapacitating them for $d.; Usable against Humanoids, Demons, Undead, Dragonkin, and Giants. sacrifice_of_the_just = { 81607, 384820, 1 }, -- Reduces the cooldown of Blessing of Sacrifice by ${$m1/-1000} sec. sanctified_plates = { 93009, 402964, 2 }, -- Armor increased by $s3%, Stamina increased by $s1% and damage taken from area of effect attacks reduced by $s2%. seal_of_alacrity = { 81619, 385425, 2 }, -- Haste increased by $s1% and Judgment cooldown reduced by ${$abs($s2)/1000}.1 sec. seal_of_mercy = { 81611, 384897, 1 }, -- Golden Path strikes the lowest health ally within it an additional time for $s1% of its effect. seal_of_might = { 81621, 385450, 2 }, -- Mastery increased by $s2% and $?c1[intellect][strength] increased by $s1%. seal_of_order = { 81623, 385129, 1 }, -- $@spellicon385127$@spellname385127:; Blessing of Dawn increases the damage and healing of your next Holy Power spending ability by an additional $s3%.; $@spellicon385126$@spellname385126:; Blessing of Dusk increases your armor by $s2% and your Holy Power generating abilities cooldown $s1% faster. seasoned_warhorse = { 81631, 376996, 1 }, -- Increases the duration of Divine Steed by ${$s1/1000} sec. strength_of_conviction = { 81480, 379008, 2 }, -- While in your Consecration, your $?s2812[Denounce][Shield of the Righteous] and Word of Glory have $s1% increased initial damage and healing. touch_of_light = { 81543, 385349, 1 }, -- Your spells and abilities have a chance to cause your target to erupt in a blinding light dealing $385354s1 Holy damage or healing an ally for $385352s1 health. turn_evil = { 93010, 10326 , 1 }, -- The power of the Light compels an Undead, Aberration, or Demon target to flee for up to $d. Damage may break the effect. Lesser creatures have a chance to be destroyed. Only one target can be turned at a time. unbreakable_spirit = { 81615, 114154, 1 }, -- Reduces the cooldown of your Divine Shield, $?s184662[Shield of Vengeance, ][]$?s31850[Ardent Defender][Divine Protection], and Lay on Hands by $s1%. -- Protection Talents afterimage = { 93188, 385414, 1 }, -- After you spend $s3 Holy Power, your next Word of Glory echoes onto a nearby ally at $s1% effectiveness. ardent_defender = { 81481, 31850 , 1 }, -- Reduces all damage you take by $s1% for $d.; While Ardent Defender is active, the next attack that would otherwise kill you will instead bring you to $s2% of your maximum health. avengers_shield = { 81502, 31935 , 1 }, -- Hurls your shield at an enemy target, dealing $s1 Holy damage, interrupting and silencing the non-Player target for $d, and then jumping to ${$x1-1} additional nearby enemies. $?a209389[; Shields you for $209388d, absorbing $209389s1% as much damage as it dealt.][]$?a378285[; Deals $ additional damage to all enemies within $378286A1 yds of each target hit.][]; avenging_wrath_might = { 81483, 31884 , 1 }, -- Call upon the Light and become an avatar of retribution, increasing your critical strike chance by $s1% for $31884d.; Combines with other Avenging Wrath abilities. barricade_of_faith = { 81501, 385726, 1 }, -- When you use Avenger's Shield, your block chance is increased by $385724s1% for $385724d. bastion_of_light = { 81488, 378974, 1 }, -- Your next $U casts of Judgment generate $s1 additional Holy Power. blessed_assurance = { 95235, 433015, 1 }, -- Casting a Holy Power ability increases the damage and healing of your next $?s204019[Blessed Hammer]?s53595[Hammer of the Righteous][Crusader Strike] by $433019s1%. blessed_hammer = { 81469, 204019, 1 }, -- Throws a Blessed Hammer that spirals outward, dealing $204301s1 Holy damage to enemies and reducing the next damage they deal to you by $.; Generates $s2 Holy Power. blessing_of_spellwarding = { 90062, 204018, 1 }, -- Blesses a party or raid member, granting immunity to magical damage and harmful effects for $d.; Cannot be used on a target with Forbearance. Causes Forbearance for $25771d.; Shares a cooldown with Blessing of Protection. blessing_of_the_forge = { 95230, 433011, 1 }, -- Avenging Wrath summons an additional $@spellicon432502 Sacred Weapon, and during Avenging Wrath your Sacred Weapon casts spells on your target and echoes the effects of your Holy Power abilities. bonds_of_fellowship = { 95181, 432992, 1 }, -- You receive 20% less damage from Blessing of Sacrifice and each time its target takes damage, you gain 4% movement speed up to a maximum of 40%. bulwark_of_order = { 81499, 209389, 1 }, -- Avenger's Shield also shields you for $209388d, absorbing $s1% as much damage as it dealt, up to $s2% of your maximum health. bulwark_of_righteous_fury = { 81491, 386653, 1 }, -- Avenger's Shield increases the damage of your next Shield of the Righteous by $386652s1% for each target hit by Avenger's Shield, stacking up to $386652u times, and increases its radius by $386652s3 yds. cleanse_toxins = { 81507, 213644, 1 }, -- Cleanses a friendly target, removing all Poison and Disease effects. consecrated_ground = { 81492, 204054, 1 }, -- Your Consecration is $s1% larger, and enemies within it have $s2% reduced movement speed.$?c3[; Your Divine Hammer is $s4% larger, and enemies within them have ${$198137s3*-1}% reduced movement speed.][] consecration_in_flame = { 81470, 379022, 1 }, -- Consecration lasts ${$s1/1000} sec longer and its damage is increased by $s2%. crusaders_judgment = { 81473, 204023, 1 }, -- Judgment now has ${1+$s1} charges, and Grand Crusader now also reduces the cooldown of Judgment by ${$s2/1000} sec. crusaders_resolve = { 81493, 380188, 1 }, -- Enemies hit by Avenger's Shield deal $s1% reduced melee damage to you for $383843d. divine_guidance = { 95235, 433106, 1 }, -- For each Holy Power ability cast, your next Consecration deals $ damage or healing immediately, split across all enemies and allies. divine_inspiration = { 95231, 432964, 1 }, -- Your spells and abilities have a chance to manifest a Holy Armament for a nearby ally. divine_purpose = { 93192, 223817, 1 }, -- Holy Power spending abilities have a $s1% chance to make your next Holy Power spending ability free and deal $223819s2% increased damage and healing. divine_resonance = { 81479, 386738, 1 }, -- [386732] After casting Divine Toll, you instantly cast $?c2[Avenger's Shield]?c1[Holy Shock][Judgment] every $386730t1 sec for $386730s2 sec. endless_wrath = { 95185, 432615, 1 }, -- Calling down an Empyrean Hammer has a $s1% chance to reset the cooldown of Hammer of Wrath and make it usable on any target, regardless of their health. excoriation = { 95232, 433896, 1 }, -- Enemies within $439632a1 yards of Hammer of Justice's target are slowed by $439632s1% for $439632d. eye_of_tyr = { 81497, 387174, 1 }, -- Releases a blinding flash from your shield, causing $s2 Holy damage to all nearby enemies within $A1 yds and reducing all damage they deal to you by $s1% for $d. faith_in_the_light = { 81485, 379043, 2 }, -- Casting Word of Glory grants you an additional $s1% block chance for $379041d. fear_no_evil = { 95232, 432834, 1 }, -- While wielding an Armament the duration of Fear effects is reduced by $s1%. ferren_marcuss_fervor = { 81482, 378762, 2 }, -- Avenger's Shield deals $s1% increased damage to its primary target. final_stand = { 81504, 204077, 1 }, -- During Divine Shield, all targets within $s1 yds are taunted. focused_enmity = { 81472, 378845, 1 }, -- When Avenger's Shield strikes a single enemy, it deals $s1% additional Holy damage. for_whom_the_bell_tolls = { 95183, 432929, 1 }, -- Divine Toll grants up to $433618s1% increased damage to your next $s2 Judgment when striking only $s3 enemy. This amount is reduced by $433618s4% for each additional target struck. forewarning = { 95231, 432804, 1 }, -- The cooldown of Holy Armaments is reduced by $s1%. gift_of_the_golden_valkyr = { 81484, 378279, 2 }, -- Each enemy hit by Avenger's Shield reduces the remaining cooldown on Guardian of Ancient Kings by ${$s1/1000}.1 sec.; When you drop below $s2% health, you become infused with Guardian of Ancient Kings for $s3 sec. This cannot occur again for $337852d. grand_crusader = { 81487, 85043 , 1 }, -- When you avoid a melee attack or use $?S53595[Hammer of the Righteous]?S204019[Blessed Hammer][Crusader Strike], you have a $s1% chance to reset the remaining cooldown on Avenger's Shield$?S393022[ and increase your Strength by $393019s1% for $393019d.][.]; $?a204023[Reduces the cooldown of Judgment by ${$204023s2/1000} sec.][] greater_judgment = { 81603, 231663, 1 }, -- Judgment causes the target to take $s1% increased damage from your next Holy Power ability.; Multiple applications may overlap. guardian_of_ancient_kings = { 81490, 86659 , 1 }, -- Empowers you with the spirit of ancient kings, reducing all damage you take by $86657s2% for $d. hammer_and_anvil = { 95238, 433718, 1 }, -- Judgment critical strikes cause a shockwave around the target, dealing $?c1[$433722s1][$433717s1] $?c1[healing][damage] at the target's location. hammer_of_the_righteous = { 81469, 53595 , 1 }, -- Hammers the current target for $53595sw1 Physical damage.$?s26573&s203785[; Hammer of the Righteous also causes a wave of light that hits all other targets within $88263A1 yds for $88263sw1 Holy damage.]?s26573[; While you are standing in your Consecration, Hammer of the Righteous also causes a wave of light that hits all other targets within $88263A1 yds for $88263sw1 Holy damage.][]; Generates $s2 Holy Power. hammerfall = { 95184, 432463, 1 }, -- $?a137028[Shield of the Righteous and Word of Glory]?s198034[Templar's Verdict, Divine Storm and Divine Hammer][Templar's Verdict and Divine Storm] calls down an Empyrean Hammer on a nearby enemy.; While Shake the Heavens is active, this effect calls down an additional Empyrean Hammer. hand_of_the_protector = { 81475, 315924, 1 }, -- When you cast Word of Glory on someone other than yourself, its healing is increased by up to $s1% based on the target's missing health. higher_calling = { 95178, 431687, 1 }, -- $?a137028[Crusader Strike, Hammer of Wrath and Judgment][Crusader Strike, Hammer of Wrath and Blade of Justice] extend the duration of Shake the Heavens by $s1 sec. holy_bulwark = { 95234, 432459, 1 }, -- [432496] While wielding a Holy Bulwark, gain an absorb shield for ${$s2/10}.1% of your max health and an additional ${$s4/10}.1% every $t2 sec. Lasts $d. holy_shield = { 81489, 152261, 1 }, -- Your block chance is increased by $s1%, you are able to block spells, and your successful blocks deal $157122s1 Holy damage to your attacker. improved_ardent_defender = { 90062, 393114, 1 }, -- Ardent Defender reduces damage taken by an additional $s1%. improved_holy_shield = { 81486, 393030, 1 }, -- Your chance to block spells is increased by $s1%. inmost_light = { 92953, 405757, 1 }, -- Eye of Tyr deals $s1% increased damage and has $s2% reduced cooldown. inner_light = { 81494, 386568, 1 }, -- When Shield of the Righteous expires, gain $386556s1% block chance and deal $386553s1 Holy damage to all attackers for $386556d. inspiring_vanguard = { 81476, 393022, 1 }, -- [393020] Grand Crusader's chance to occur is increased to $s2% and it grants you $393019s1% strength for $393019d. laying_down_arms = { 95236, 432866, 1 }, -- When an Armament fades from you, the cooldown of Lay on Hands is reduced by ${$s1/1000}.1 sec and you gain $?a137028[Shining Light][Infusion of Light]. light_of_the_titans = { 81503, 378405, 1 }, -- Word of Glory heals for an additional $s1% over $378412d.; Increased by $s2% if cast on yourself while you are afflicted by a harmful damage over time effect. lightforged_blessing = { 93168, 406468, 1 }, -- $?s2812[Denounce][Shield of the Righteous] heals you and up to $s3 nearby allies for ${$53600s2}.1% of maximum health. lights_deliverance = { 95182, 425518, 1 }, -- You gain a stack of Light's Deliverance when you call down an Empyrean Hammer.; While $?a137028[Eye of Tyr][Wake of Ashes] and Hammer of Light are unavailable, you consume $433674U stacks of Light's Deliverance, empowering yourself to cast Hammer of Light an additional time for free. lights_guidance = { 95180, 427445, 1 }, -- [427453] Hammer down your enemy with the power of the Light, dealing $429826s1 Holy damage and ${$429826s1/2} Holy damage up to 4 nearby enemies. ; Additionally, calls down Empyrean Hammers from the sky to strike $427445s2 nearby enemies for $431398s1 Holy damage each.; moment_of_glory = { 81505, 327193, 1 }, -- For the next $d, you generate an absorb shield for $s3% of all damage you deal, and Avenger's Shield damage is increased by $s2% and its cooldown is reduced by $s1%. of_dusk_and_dawn = { 93356, 409441, 1 }, -- [385127] Your next Holy Power spending ability deals $s1% additional increased damage and healing. This effect stacks. quickened_invocation = { 81479, 379391, 1 }, -- Divine Toll's cooldown is reduced by ${-$s1/1000} sec. redoubt = { 81494, 280373, 1 }, -- Shield of the Righteous increases your Strength and Stamina by $280375s2% for $280375d, stacking up to $280375u. relentless_inquisitor = { 81506, 383388, 1 }, -- Spending Holy Power grants you $s1% haste per finisher for $383389d, stacking up to ${$s2+$s3} times. resolute_defender = { 81471, 385422, 2 }, -- Each $s2 Holy Power you spend reduces the cooldown of Ardent Defender and Divine Shield by ${$s1/10}.1 sec. righteous_protector = { 81477, 204074, 1 }, -- Holy Power abilities reduce the remaining cooldown on Avenging Wrath and Guardian of Ancient Kings by $ sec. rite_of_adjuration = { 95233, 433583, 1 }, -- Imbue your weapon with the power of the Light, increasing your Stamina by $433584s1% and causing your Holy Power abilities to sometimes unleash a burst of healing around a target.; Lasts $433584d. rite_of_sanctification = { 95233, 433568, 1 }, -- Imbue your weapon with the power of the Light, increasing your armor by $433550s2% and your primary stat by $433550s1%.; Lasts $433550d. sacrosanct_crusade = { 95179, 431730, 1 }, -- $?a137028[Eye of Tyr][Wake of Ashes] surrounds you with a Holy barrier for $?a137028[$s1][$s4]% of your maximum health.; Hammer of Light heals you for $?a137028[$s2][$s5]% of your maximum health, increased by $?a137028[$s3][$s6]% for each additional target hit. Any overhealing done with this effect gets converted into a Holy barrier instead. sanctification = { 95185, 432977, 1 }, -- Casting Judgment increases the damage of Empyrean Hammer by $433671s1% for $433671d.; Multiple applications may overlap. sanctified_wrath = { 81620, 31884 , 1 }, -- Call upon the Light and become an avatar of retribution for $