You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1717 lines
61 KiB

-- WarriorProtection.lua
-- October 2022
-- Updated for PTR Build 46181
-- Last Modified 10/19/2022 18:15 UTC
if UnitClassBase( "player" ) ~= "WARRIOR" then return end
local addon, ns = ...
local Hekili = _G[ addon ]
local class, state = Hekili.Class, Hekili.State
local FindPlayerAuraByID = ns.FindPlayerAuraByID
-- Conduits (Patch 10.0) : In all cases, talents override and disable conduits they share effects with.
-- Talents override the following:
-- Brutal Vitality
-- Fueled by Violence
-- Piercing Verdict
-- Unnerving Focus
-- Cacophonous Roar
-- Inspiring Presence
-- Merciless Bonegrinder
-- Show of Force (Protection)
-- Ashen Juggernaut
-- Conduits that need modeled.
-- [X] Indelible Victory
-- [X] Stalwart Guardian
-- [X] Disturb the Peace
local spec = Hekili:NewSpecialization( 73 )
local base_rage_gen = 2
spec:RegisterResource( Enum.PowerType.Rage, {
mainhand = {
swing = "mainhand",
last = function ()
local swing = state.swings.mainhand
local t = state.query_time
return ( swing + floor( ( t - swing ) / state.swings.mainhand_speed ) * state.swings.mainhand_speed )
end,
interval = "mainhand_speed",
stop = function () return state.time == 0 or state.swings.mainhand == 0 end,
value = function ()
if state.talent.devastator.enabled then -- 1 Rage for instigate with devastator, 2 rage for instigate with devastate
return (base_rage_gen * ( state.talent.war_machine.enabled and 1.5 or 1 )) + (state.talent.instigate.enabled and 1 or 0) -- 1 Rage for instigate
else
return (base_rage_gen * ( state.talent.war_machine.enabled and 1.5 or 1 )) + (state.talent.instigate.enabled and 2 or 0) -- 2 Rage for instigate
end
end
},
conquerors_banner = {
aura = "conquerors_banner",
last = function ()
local app = state.buff.conquerors_banner.applied
local t = state.query_time
return app + floor( t - app )
end,
interval = 1,
value = 4,
},
})
-- Talents
spec:RegisterTalents( {
anger_management = { 90311, 152278, 1 }, -- Every 10 Rage you spend reduces the remaining cooldown on Avatar and Shield Wall by 1 sec.
armored_to_the_teeth = { 90259, 394855, 2 }, -- Gain Strength equal to 2% of your Armor.
avatar = { 90365, 107574, 1 }, -- Transform into a colossus for 20 sec, causing you to deal 20% increased damage and removing all roots and snares. Generates 10 Rage.
barbaric_training = { 90334, 390675, 1 }, -- Revenge deals 25% increased damage but now costs 10 more rage.
battering_ram = { 90262, 394312, 1 }, -- Shield Charge critical strike chance and critical strike damage increased by 15%, and Shield Charge increases your auto-attack speed by 20% for 20 sec.
battle_stance = { 90261, 386164, 1 }, -- A balanced combat state that increases the critical strike chance of your abilities by 3% and reduces the duration of movement impairing effects by 10%. Lasts until canceled.
battlescarred_veteran = { 90435, 386394, 1 }, -- When your health is brought below 30%, you take 80% less damage for 8 sec and healing you receive is increased by 100%. Cannot occur more than once every 180 sec.
berserker_rage = { 90372, 18499 , 1 }, -- Go berserk, removing and granting immunity to Fear, Sap, and Incapacitate effects for 6 sec.
berserker_shout = { 90348, 384100, 1 }, -- Go berserk, removing and granting immunity to Fear, Sap, and Incapacitate effects for 6 sec. Also remove fear effects from group members within 12 yards.
best_served_cold = { 90304, 202560, 1 }, -- Revenge deals 10% more damage, or 20% more damage when your successful dodges or parries have made it cost no Rage.
bitter_immunity = { 90356, 383762, 1 }, -- Restores 20% health instantly and removes all diseases, poisons and curses affecting you.
blood_and_thunder = { 90342, 384277, 1 }, -- Thunderclap deals 10% increased damage and if you have Rend, Thunder Clap affects 5 nearby targets with Rend.
bloodborne = { 90448, 385704, 2 }, -- Deep Wounds, Rend and Thunderous Roar's Bleed effects deal 10% increased damage.
bloodsurge = { 90300, 384361, 1 }, -- Your Bleed effects have a chance to grant you 5 Rage.
bolster = { 90264, 280001, 1 }, -- Last Stand's cooldown is reduced by 60 sec, and it grants you the Shield Block effect for its duration.
booming_voice = { 90314, 202743, 1 }, -- Demoralizing Shout also generates 30 Rage, and increases damage you deal to affected targets by 20%.
bounding_stride = { 90355, 202163, 1 }, -- Reduces the cooldown of Heroic Leap by 15 sec, and Heroic Leap now also increases your run speed by 70% for 3 sec.
brace_for_impact = { 90296, 386030, 1 }, -- Using Shield Slam increases the damage of Shield Slam by 5% for 16 sec, and it increases the amount of damage you block by 5%. Stacking up to 5 times.
brutal_vitality = { 90451, 384036, 1 }, -- 30% of damage you deal adds to your active Ignore Pain.
cacophonous_roar = { 90383, 382954, 1 }, -- Intimidating Shout can withstand 200% more damage before breaking.
challenging_shout = { 90309, 1161 , 1 }, -- Taunts all enemies within 10 yds to attack you for 6 sec.
champions_bulwark = { 90316, 386328, 1 }, -- Shield Charge deals 20% increased damage, grants you Shield Block, Revenge!, and generates an additional 20 Rage.
concussive_blows = { 90334, 383115, 1 }, -- Cooldown of Pummel reduced by 1.0 sec. Successfully interrupting an enemy increases the damage you deal to them by 5% for 10 sec.
crackling_thunder = { 90342, 203201, 1 }, -- Thunder Clap's radius is increased by 50%, and it reduces movement speed by an additional 20%.
cruel_strikes = { 90381, 392777, 2 }, -- Critical strike chance increased by 1% and critical strike damage of Execute increased by 5%.
crushing_force = { 90369, 390642, 2 }, -- Shield Slam deals an additional 5% damage and deals 5% increased critical strike damage.
dance_of_death = { 90260, 393965, 1 }, -- If your Ravager helps kill an enemy, it lasts 2.0 sec longer and deals 20% increased damage. This effect also applies to future Ravagers for the next 2 min.
defensive_stance = { 90330, 386208, 1 }, -- A defensive combat state that reduces all damage you take by 20%, and all damage you deal by 10%. Lasts until canceled.
demoralizing_shout = { 90305, 1160 , 1 }, -- Demoralizes all enemies within 15 yards, reducing the damage they deal to you by 25% for 8 sec. Generates 30 Rage.
devastator = { 90299, 236279, 1 }, -- Your auto attacks deal an additional 328 Physical damage and have a 20% chance to reset the remaining cooldown on Shield Slam.
disrupting_shout = { 90307, 386071, 1 }, -- Taunts all enemies within 14 yds to attack you for 6 sec, interrupts all spellcasting within 14 yds and prevents any spell in that school from being cast for 6 sec.
double_time = { 90382, 103827, 1 }, -- Increases the maximum number of charges on Charge by 1, and reduces its cooldown by 3 sec.
elysian_might = { 90323, 386285, 1 }, -- Spear of Bastion's duration is increased by 2 sec. While you remain within Spear of Bastion's area your critical strike damage is increased by 25%.
endurance_training = { 90339, 382940, 1 }, -- Stamina increased by 5% and the duration of Fear, Sap and Incapacitate effects on you is reduced by 10.0%.
enduring_alacrity = { 90433, 384063, 1 }, -- Increases Stamina and Armor by 5% and your Haste by 1%.
enduring_defenses = { 90313, 386027, 1 }, -- Shield Block lasts 2 sec longer.
fast_footwork = { 90371, 382260, 1 }, -- Movement speed increased by 5%.
focused_vigor = { 90318, 384067, 1 }, -- Increases Strength and Armor by 5% and your critical strike chance by 1%.
frothing_berserker = { 90370, 392790, 1 }, -- Revenge has a 20% chance to immediately refund 50% of the Rage spent.
fueled_by_violence = { 90451, 383103, 1 }, -- You are healed for 50% of the damage dealt by Deep Wounds.
furious_blows = { 90336, 390354, 1 }, -- Auto-attack speed increased by 5%.
heavy_repercussions = { 90319, 203177, 1 }, -- Shield Slam generates 2 more Rage and extends the duration of Shield Block by 1.0 sec.
heroic_leap = { 90346, 6544 , 1 }, -- Leap through the air toward a target location, slamming down with destructive force to deal 349 Physical damage to all enemies within 8 yards, and resetting the remaining cooldown on Taunt.
honed_reflexes = { 90361, 391271, 1 }, -- Cooldown of Shield Slam and Pummel reduced by 1.0 sec.
ignore_pain = { 90295, 190456, 1 }, -- Fight through the pain, ignoring 55% of damage taken, up to 5,202 total damage prevented.
immovable_object = { 90364, 394307, 1 }, -- Activating Avatar or Shield Wall casts the other at reduced effectiveness.
impending_victory = { 90326, 202168, 1 }, -- Instantly attack the target, causing 743 damage and healing you for 30% of your maximum health. Killing an enemy that yields experience or honor resets the cooldown of Impending Victory and makes it cost no Rage.
impenetrable_wall = { 90310, 384072, 1 }, -- Shield Slam generates an additional 3 Rage and reduces the remaining cooldown of Shield Wall by 5 sec.
improved_heroic_throw = { 90306, 386034, 1 }, -- Heroic Throw deals 100% increased damage and inflicts Deep Wounds.
indomitable = { 90434, 202095, 1 }, -- Your maximum health is increased by 10%, and every 10 Rage you spend heals you for 1% of your maximum health.
inspiring_presence = { 90332, 382310, 1 }, -- Rallying Cry's duration is increased by 3 sec and it grants a further 5% maximum health.
instigate = { 90301, 394311, 1 }, -- Devastate deals 20% increased damage and generates 2 Rage. Devastator deals 10% increased damage and generates 1 Rage.
intervene = { 90329, 3411 , 1 }, -- Run at high speed toward an ally, intercepting all melee and ranged attacks against them for 6 sec while they remain within 10 yds.
intimidating_shout = { 90384, 5246 , 1 }, -- Causes the targeted enemy to cower in fear, and up to 5 additional enemies within 8 yards to flee. Targets are disoriented for 8 sec.
into_the_fray = { 90319, 202603, 1 }, -- You gain 2% Haste for each enemy or ally within 10 yards, up to 10% Haste.
juggernaut = { 90449, 393967, 1 }, -- Execute increases Execute's damage dealt by 3% for 20 sec, stacking up to 15 times.
last_stand = { 90297, 12975 , 1 }, -- Increases maximum health by 30% for 15 sec, and instantly heals you for that amount.
leeching_strikes = { 90344, 382258, 1 }, -- Leech increased by 5%.
massacre = { 90313, 281001, 1 }, -- Condemn is now usable on targets below 35% health.
menace = { 90383, 275338, 1 }, -- Intimidating Shout will knock back all nearby enemies except your primary target, and cause them all to cower in fear for 15 sec instead of fleeing.
onehanded_weapon_specialization = { 90324, 382895, 1 }, -- Damage with one-handed weapons and Leech increased by 5%.
overwhelming_rage = { 90378, 382767, 2 }, -- Maximum Rage increased by 15.
pain_and_gain = { 90353, 382549, 1 }, -- When you take any damage, heal for 4.50% of your maximum health. This can only occur once every 10 sec.
piercing_howl = { 90348, 12323 , 1 }, -- Snares all enemies within 12 yards, reducing their movement speed by 70% for 8 sec.
piercing_verdict = { 90379, 382948, 1 }, -- Spear of Bastion's instant damage increased by 50% and its Rage generation is increased by 100%.
punish = { 90449, 275334, 1 }, -- Shield Slam deals 10% increased damage, and reduces enemies' damage against you by 3% for 9 sec. Multiple punishments may overlap.
rallying_cry = { 90331, 97462 , 1 }, -- Lets loose a rallying cry, granting all party or raid members within 40 yards 19% temporary and maximum health for 13.2 sec.
ravager = { 90432, 228920, 1 }, -- Throws a whirling weapon at the target location that chases nearby enemies, inflicting 7,563 Physical damage to all enemies over 9.8 sec. Deals reduced damage beyond 8 targets. Generates 10 Rage each time it deals damage.
reinforced_plates = { 90368, 382939, 1 }, -- Armor increased by 20%.
rend = { 90302, 394062, 1 }, -- Wounds the target, causing 477 Physical damage instantly and an additional 1,575 Bleed damage over 15 sec.
revenge = { 90298, 6572 , 1 }, -- Swing in a wide arc, dealing 919 Physical damage to all enemies in front of you. Deals reduced damage beyond 5 targets. Your successful dodges and parries have a chance to make your next Revenge cost no Rage.
rumbling_earth = { 90374, 275339, 1 }, -- Shockwave's range increased by 6 yards and when Shockwave strikes at least 3 targets, its cooldown is reduced by 15 sec.
second_wind = { 90332, 29838 , 1 }, -- Restores 6% health every 1 sec when you have not taken damage for 5 sec.
seismic_reverberation = { 90340, 382956, 1 }, -- If Whirlwind or Revenge hits 3 or more enemies, it hits them 1 additional time for 30% damage.
shattering_throw = { 90351, 64382 , 1 }, -- Hurl your weapon at the enemy, causing 1,486 Physical damage, ignoring armor, and removing any magical immunities. Deals up to 500% increased damage to absorb shields.
shield_charge = { 90317, 385952, 1 }, -- Charge to an enemy with your shield, dealing 4,087 Physical damage to it and 1,635 Physical damage to all enemies within 10 yards. Also stuns the primary target for 4 sec. Generates 20 Rage.
shield_specialization = { 90315, 386011, 2 }, -- Increases Block chance by 6% and your Block value by 15%.
shield_wall = { 90312, 871 , 1 }, -- Reduces all damage you take by 40% for 8 sec.
shockwave = { 90375, 46968 , 1 }, -- Sends a wave of force in a frontal cone, causing 446 damage and stunning all enemies within 16 yards for 2 sec. Generates 10 Rage.
show_of_force = { 90320, 385843, 1 }, -- Revenge damage increased by 10% and Revenge increases the damage of your next Thunder Clap by 20%.
sidearm = { 90377, 384404, 1 }, -- Your auto-attacks have a 20% chance to hurl weapons at your target and 3 other enemies in front of you, dealing an additional 297 Physical damage.
sonic_boom = { 90321, 390725, 1 }, -- Shockwave deals 350% increased damage and will always critical strike.
spear_of_bastion = { 90380, 376079, 1 }, -- Throw a spear at the target location, dealing 2,452 Physical damage instantly and an additional 2,739 damage over 4 sec. Deals reduced damage beyond 5 targets. Enemies hit are chained to the spear's location for the duration. Generates 20 Rage.
spell_block = { 90450, 392966, 1 }, -- You are able to block spells for 20 sec.
spell_reflection = { 90385, 23920 , 1 }, -- Raise your shield, reflecting the first spell cast on you, and reduce magic damage you take by 20% for 5 sec.
storm_bolt = { 90337, 107570, 1 }, -- Hurls your weapon at an enemy, causing 424 Physical damage and stunning for 4 sec.
storm_of_steel = { 90431, 382953, 1 }, -- Ravager's damage is reduced by 40% but it now has 2 charges and generates 15 Rage each time it deals damage.
strategist = { 90303, 384041, 1 }, -- Devastate, Thunder Clap, Revenge, and Execute have a 30% chance to reset the remaining cooldown on Shield Slam.
sudden_death = { 90320, 29725 , 1 }, -- Your attacks have a chance to make your next Condemn cost no Rage, be usable on any target regardless of their health, and deal damage as if you spent 40 Rage.
thunder_clap = { 90343, 6343 , 1 }, -- Blasts all enemies within 8 yards for 755 Physical damage. and reduces their movement speed by 20% for 10 sec. Deals reduced damage beyond 5 targets. Generates 5 Rage.
thunderlord = { 90308, 385840, 1 }, -- Increases the radius of Demoralizing Shout by 5 yards. Each enemy hit by Thunder Clap reduces the remaining cooldown on Demoralizing Shout by 1.0 sec, up to 3.0 sec.
thunderous_roar = { 90359, 384318, 1 }, -- Roar explosively, dealing 2,378 Physical damage to enemies within 12 yds and cause them to bleed for 2,378 physical damage over 8 sec. Generates 10 Rage.
thunderous_words = { 90358, 384969, 1 }, -- Increases the duration of Thunderous Roar's Bleed effect by 2.0 sec and increases the damage of your bleed effects by 15% at all times.
titanic_throw = { 90341, 384090, 1 }, -- Throws your weapon at the enemy, causing 1,040 Physical damage to it and 5 nearby enemies. Generates high threat.
tough_as_nails = { 90450, 385888, 1 }, -- Blocking an attack deals 445 Physical damage to the attacker, ignoring armor. Generates high threat.
unbreakable_will = { 90310, 384074, 1 }, -- Shield Wall gains 1 additional charge, and grants 50% of its effect to all party members.
unnerving_focus = { 90452, 384042, 1 }, -- Last Stand increases your Rage generation by 50%.
unstoppable_force = { 90364, 275336, 1 }, -- Avatar increases the damage of Thunder Clap and Shockwave by 50%, and reduces the cooldown of Thunder Clap by 50%.
uproar = { 90357, 391572, 1 }, -- Thunderous Roar's cooldown reduced by 30 sec.
violent_outburst = { 90265, 386477, 1 }, -- Consuming 30 rage grants a stack of Seeing Red, which transforms at 8 stacks into Violent Outburst, causing your next Shield Slam or Thunder Clap to deal 200% increased damage, generate 100% more Rage and grant Ignore Pain.
war_machine = { 90345, 316733, 1 }, -- Your auto attacks generate 50% more Rage. Killing an enemy instantly generates 10 Rage, and increases your movement speed by 30% for 8 sec.
wild_strikes = { 90360, 382946, 2 }, -- Haste increased by 1% and your auto-attack critical strikes increase your auto-attack speed by 10% for 10 sec sec.
wrecking_throw = { 90351, 384110, 1 }, -- Hurl your weapon at the enemy, causing 1,486 Physical damage, ignoring armor. Deals up to 500% increased damage to absorb shields.
} )
-- PvP Talents
spec:RegisterPvpTalents( {
bodyguard = 168, -- 213871
demolition = 5374, -- 329033
disarm = 24, -- 236077
dragon_charge = 831, -- 206572
morale_killer = 171, -- 199023
oppressor = 845, -- 205800
rebound = 833, -- 213915
shield_bash = 173, -- 198912
sword_and_board = 167, -- 199127
thunderstruck = 175, -- 199045
warbringer = 5432, -- 356353
warpath = 178, -- 199086
} )
-- Auras
spec:RegisterAuras( {
avatar = {
id = 107574,
duration = 20,
max_stack = 1
},
battering_ram = {
id = 394313,
duration = 20,
max_stack = 1,
},
battle_shout = {
id = 6673,
duration = 3600,
max_stack = 1
},
battle_stance = {
id = 386164,
duration = 3600,
max_stack = 1
},
battlescarred_veteran = {
id = 386397,
duration = 8,
max_stack = 1
},
berserker_rage = {
id = 18499,
duration = 6,
max_stack = 1
},
berserker_shout = {
id = 384100,
duration = 6,
max_stack = 1
},
bodyguard = {
id = 213871,
duration = 60,
tick_time = 1,
max_stack = 1
},
bounding_stride = {
id = 202164,
duration = 3,
max_stack = 1,
},
brace_for_impact = {
id = 386029,
duration = 16,
max_stack = 5
},
challenging_shout = {
id = 1161,
duration = 6,
max_stack = 1
},
charge = {
id = 105771,
duration = 1,
max_stack = 1,
},
concussive_blows = {
id = 383116,
duration = 10,
max_stack = 1
},
dance_of_death = {
id = 393966,
duration = 180,
max_stack = 1,
},
deep_wounds = {
id = 115767,
duration = 15,
tick_time = 3,
max_stack = 1
},
defensive_stance = {
id = 386208,
duration = 3600,
max_stack = 1
},
demoralizing_shout = {
id = 1160,
duration = 8,
max_stack = 1
},
disarm = {
id = 236077,
duration = 6,
max_stack = 1
},
disrupting_shout = {
id = 386071,
duration = 6,
max_stack = 1
},
dragon_charge = {
id = 206572,
duration = 1.2,
max_stack = 1
},
elysian_might = {
id = 386286,
duration = 8,
max_stack = 1
},
focused_assault = {
id = 206891,
duration = 6,
max_stack = 5
},
hamstring = {
id = 1715,
duration = 15,
max_stack = 1
},
ignore_pain = {
id = 190456,
duration = 12,
max_stack = 1
},
indelible_victory = {
id = 336642,
duration = 8,
max_stack = 1
},
intimidating_shout = {
id = function () return talent.menace.enabled and 316593 or 5246 end,
duration = function () return talent.menace.enabled and 15 or 8 end,
max_stack = 1
},
into_the_fray = {
id = 202602,
duration = 3600,
max_stack = 5
},
juggernaut = {
id = 383290,
duration = 12,
max_stack = 15
},
last_stand = {
id = 12975,
duration = 15,
max_stack = 1
},
piercing_howl = {
id = 12323,
duration = 8,
max_stack = 1
},
punish = {
id = 275335,
duration = 9,
max_stack = 5
},
wild_strikes = { --Renamed from Quick Thinking to Wild Strikes in build 45779,
id = 382946, --392778 is quick_thinking aura,
duration = 10,
max_stack = 1
},
rallying_cry = {
id = 97463,
duration = function () return 10 + ( talent.inspiring_presence.enabled and 3 or 0 ) end,
max_stack = 1,
},
ravager = {
id = 228920,
duration = function () return ( buff.dance_of_death.up and 14 or 12 ) * haste end,
tick_time = 2,
max_stack = 1
},
rend = {
id = 388539,
duration = 15,
tick_time = 3,
max_stack = 1
},
revenge = {
id = 5302,
duration = 6,
max_stack = 1
},
seeing_red = {
id = 386486,
duration = 30,
max_stack = 8
},
shield_bash = {
id = 198912,
duration = 8,
max_stack = 1
},
shield_block = {
id = 132404,
duration = function () return 6 + ( talent.enduring_defenses.enabled and 2 or 0 ) + ( talent.heavy_repercussions.enabled and 1 or 0 ) end,
max_stack = 1
},
shield_charge = {
id = 385954,
duration = 4,
max_stack = 1,
},
shield_wall = {
id = 871,
duration = 8,
max_stack = 1
},
shockwave = {
id = 132168,
duration = 2,
max_stack = 1
},
show_of_force = {
id = 385842,
duration = 12,
max_stack = 1
},
spell_block = {
id = 392966,
duration = 20,
max_stack = 1
},
spell_reflection = {
id = 23920,
duration = function () return legendary.misshapen_mirror.enabled and 8 or 5 end,
max_stack = 1
},
spell_reflection_defense = {
id = 385391,
duration = 5,
max_stack = 1
},
storm_bolt = {
id = 107570,
duration = 4,
max_stack = 1
},
sudden_death = {
id = 52437,
duration = 10,
max_stack = 1
},
taunt = {
id = 355,
duration = 3,
max_stack = 1
},
thunder_clap = {
id = 6343,
duration = 10,
max_stack = 1
},
thunderous_roar = {
id = 384318,
duration = function () return talent.thunderous_words.enabled and 10 or 8 end,
tick_time = 2,
max_stack = 1
},
unnerving_focus = {
id = 384043,
duration = 15,
max_stack = 1
},
victorious = {
id = 32216,
duration = 20,
max_stack = 1
},
violent_outburst = { -- Renamed from Outburst to violent Outburst in build 45779
id = 386478,
duration = 30,
max_stack = 1
},
war_machine = {
id = 262232,
duration = 8,
max_stack = 1
},
} )
-- Dragonflight Season 1
spec:RegisterSetBonuses( "tier29_2pc", 393710, "tier29_4pc", 393711 ) -- Dragonflight Season 1
-- 2-Set - Revenge grants you Vanguard's Determination, increasing your damage done and reducing damage you take by 4% for 5 sec seconds.
-- 4-Set - During Vanguard's Determination, gain Ignore Pain equal to 5% of damage you deal.
spec:RegisterAuras( {
vanguards_determination = {
id = 394056,
duration = 5,
max_stack = 1,
}
})
local rageSpent = 0
local gloryRage = 0
local outburstRage = 0
spec:RegisterStateExpr( "glory_rage", function () return gloryRage end )
spec:RegisterStateExpr( "rage_spent", function () return rageSpent end )
spec:RegisterStateExpr( "outburst_rage", function () return outburstRage end )
local RAGE = Enum.PowerType.Rage
local lastRage = -1
spec:RegisterUnitEvent( "UNIT_POWER_FREQUENT", "player", nil, function( event, unit, powerType )
if powerType == "RAGE" then
local current = UnitPower( "player", RAGE )
if current < lastRage - 3 then -- Spent Rage, -3 is used as a Hack to avoid Rage decaying
if state.talent.anger_management.enabled or state.talent.indomitable.enabled then
rageSpent = ( rageSpent + lastRage - current ) % 10 -- Anger Management / Indomitable
end
if state.legendary.glory.enabled and FindPlayerAuraByID( 324143 ) then
gloryRage = ( gloryRage + lastRage - current ) % 10 -- Glory.
end
if state.talent.violent_outburst.enabled then
outburstRage = ( outburstRage + lastRage - current ) % 30 -- Outburst T28 or Violent Outburst
end
end
lastRage = current
end
end )
-- model rage expenditure and special effects
spec:RegisterHook( "spend", function( amt, resource )
if resource == "rage" and amt < 0 then
if talent.indomitable.enabled or talent.anger_management.enabled then
rage_spent = rage_spent + amt
local activations = floor( rage_spent / 10 )
rage_spent = rage_spent % 10
if activations > 0 then
if talent.anger_management.enabled then
if talent.shield_wall.enabled then
cooldown.shield_wall.expires = cooldown.shield_wall.expires - activations
end
if talent.avatar.enabled then
cooldown.avatar.expires = cooldown.avatar.expires - activations
end
end
if talent.indomitable.enabled then
gain( (0.1 * activations) * health.max, "health" )
end
end
end
if legendary.glory.enabled and buff.conquerors_banner.up then
glory_rage = glory_rage + amt
local addition = floor( glory_rage / 10 ) * 0.5
glory_rage = glory_rage % 10
buff.conquerors_banner.expires = buff.conquerors_banner.expires + addition
end
if talent.violent_outburst.enabled then
outburst_rage = outburst_rage + amt
local stacks = floor( outburst_rage / 30 )
outburst_rage = outburst_rage % 30
if stacks > 0 then
addStack( "seeing_red", nil, stacks )
if buff.seeing_red.stack > 7 then
applyBuff( "violent_outburst" )
removeBuff( "seeing_red" )
end
end
end
end
end )
spec:RegisterStateExpr( "cycle_for_execute", function ()
if active_enemies == 1 or target.health_pct < ( talent.massacre.enabled and 35 or 20 ) or not settings.cycle or buff.execute_ineligible.down or buff.sudden_death.up then return false end
return Hekili:GetNumTargetsBelowHealthPct( talent.massacre.enabled and 35 or 20, false, max( settings.cycle_min, offset + delay ) ) > 0
end )
-- Abilities
spec:RegisterAbilities( {
avatar = {
id = 107574,
cast = 0,
cooldown = 90,
gcd = "off",
spend = function () return -10 * ( buff.unnerving_focus.up and 1.5 or 1 ) end,
spendType = "rage",
talent = "avatar",
startsCombat = false,
texture = 613534,
toggle = "cooldowns",
handler = function ()
applyBuff( "avatar" )
if talent.immovable_object.enabled then
applyBuff("shield_wall", 4)
end
if talent.violent_outburst.enabled then
applyBuff( "violent_outburst" )
end
end,
},
battle_shout = {
id = 6673,
cast = 0,
cooldown = 15,
gcd = "spell",
startsCombat = false,
texture = 132333,
nobuff = "battle_shout",
essential = true,
handler = function ()
applyBuff( "battle_shout" )
end,
},
battle_stance = {
id = 386164,
cast = 0,
cooldown = 3,
gcd = "off",
talent = "battle_stance",
startsCombat = false,
texture = 132349,
handler = function ()
applyBuff( "battle_stance" )
removeBuff( "defensive_stance" )
end,
},
berserker_rage = {
id = 18499,
cast = 0,
cooldown = 60,
gcd = "off",
talent = "berserker_rage",
startsCombat = false,
texture = 136009,
toggle = "cooldowns",
handler = function ()
applyBuff( "berserker_rage" )
end,
},
berserker_shout = {
id = 384100,
cast = 0,
cooldown = 60,
gcd = "off",
talent = "berserker_shout",
startsCombat = false,
texture = 136009,
toggle = "cooldowns",
handler = function ()
applyBuff( "berserker_shout" )
end,
},
bitter_immunity = {
id = 383762,
cast = 0,
cooldown = 180,
gcd = "off",
talent = "bitter_immunity",
startsCombat = false,
texture = 136088,
toggle = "cooldowns",
handler = function ()
gain( 0.2 * health.max, "health" )
end,
},
bodyguard = {
id = 213871,
cast = 0,
cooldown = 15,
gcd = "spell",
pvptalent = "bodyguard",
startsCombat = false,
texture = 132359,
handler = function ()
end,
},
challenging_shout = {
id = 1161,
cast = 0,
cooldown = 120,
gcd = "off",
talent = "challenging_shout",
startsCombat = true,
texture = 132091,
toggle = "cooldowns",
handler = function ()
applyDebuff( "target", "challenging_shout" )
active_dot.challenging_shout = active_enemies
end,
},
charge = {
id = 100,
cast = 0,
charges = function () return talent.double_time.enabled and 2 or 1 end,
cooldown = function () return talent.double_time.enabled and 17 or 20 end,
recharge = function () return talent.double_time.enabled and 17 or 20 end,
gcd = "off",
spend = function () return -20 * ( buff.unnerving_focus.up and 1.5 or 1 ) end,
spentType = "rage",
startsCombat = true,
texture = 132337,
usable = function () return target.minR > 7, "requires 8 yard range or more" end,
handler = function ()
applyDebuff( "target", "charge" )
if legendary.reprisal.enabled then
applyBuff( "shield_block", 4 )
applyBuff( "revenge" )
gain( 20, "rage" )
end
end,
},
defensive_stance = {
id = 386208,
cast = 0,
cooldown = 3,
gcd = "off",
talent = "defensive_stance",
startsCombat = false,
texture = 132341,
essential = true,
handler = function ()
removeBuff( "battle_stance" )
applyBuff( "defensive_stance" )
end,
},
demoralizing_shout = {
id = 1160,
cast = 0,
cooldown = 45,
gcd = "spell",
spend = function () return (talent.booming_voice.enabled and -30 or 0) * (buff.unnerving_focus.up and 1.5 or 1) end,
spendType = "rage",
talent = "demoralizing_shout",
startsCombat = false,
texture = 132366,
handler = function ()
applyDebuff( "target", "demoralizing_shout" )
active_dot.demoralizing_shout = max( active_dot.demoralizing_shout, active_enemies )
end,
},
devastate = {
id = 20243,
cast = 0,
cooldown = 0,
gcd = "spell",
startsCombat = true,
texture = 135291,
notalent = "devastator",
handler = function ()
applyDebuff( "target", "deep_wounds" )
end,
},
disarm = {
id = 236077,
cast = 0,
cooldown = 45,
gcd = "spell",
pvptalent = "disarm",
startsCombat = false,
texture = 132343,
handler = function ()
applyDebuff( "target", "disarm")
end,
},
disrupting_shout = {
id = 386071,
cast = 0,
cooldown = 90,
gcd = "off",
talent = "disrupting_shout",
startsCombat = false,
texture = 132091,
toggle = "cooldowns",
handler = function ()
applyDebuff( "target", "disrupting_shout" )
active_dot.disrupting_shout = active_enemies
end,
},
dragon_charge = {
id = 206572,
cast = 0,
cooldown = 20,
gcd = "off",
pvptalent = "dragon_charge",
startsCombat = false,
texture = 1380676,
handler = function ()
end,
},
execute = {
id = function () return talent.massacre.enabled and 281000 or 163201 end,
known = 163201,
copy = { 163201, 281000 },
noOverride = 317485, -- Condemn
cast = 0,
cooldown = 6,
gcd = "spell",
hasteCD = true,
spend = 0,
spendType = "rage",
startsCombat = true,
texture = 135358,
usable = function ()
if buff.sudden_death.up then return true end
if cycle_for_execute then return true end
return target.health_pct < ( talent.massacre.enabled and 35 or 20 ), "requires < " .. ( talent.massacre.enabled and 35 or 20 ) .. "% health"
end,
cycle = "execute_ineligible",
indicator = function () if cycle_for_execute then return "cycle" end end,
timeToReady = function()
-- Instead of using regular resource requirements, we'll use timeToReady to support the spend system.
if rage.current >= 20 then return 0 end
return rage.time_to_20
end,
handler = function ()
if not buff.sudden_death.up then
local cost = min( rage.current, 40 )
spend( cost, "rage", nil, true)
gain( cost * 0.2, "rage" ) -- Regain 20% for target not dying (Protection spec)
else
removeBuff( "sudden_death" )
end
if talent.juggernaut.enabled then addStack( "juggernaut", nil, 1 ) end
end,
auras = {
-- Target Swapping
execute_ineligible = {
duration = 3600,
max_stack = 1,
generate = function( t, auraType )
if buff.sudden_death.down and target.health_pct > ( talent.massacre.enabled and 35 or 20 ) then
t.count = 1
t.expires = query_time + 3600
t.applied = query_time
t.duration = 3600
t.caster = "player"
return
end
t.count = 0
t.expires = 0
t.applied = 0
t.caster = "nobody"
end
}
}
},
hamstring = {
id = 1715,
cast = 0,
cooldown = 0,
gcd = "spell",
spend = 10,
spendType = "rage",
startsCombat = true,
texture = 132316,
handler = function ()
applyDebuff( "target", "hamstring" )
end,
},
heroic_leap = {
id = 6544,
cast = 0,
cooldown = function () return talent.bounding_stride.enabled and 30 or 45 end,
charges = function () return legendary.leaper.enabled and 3 or nil end,
recharge = function () return legendary.leaper.enabled and ( talent.bounding_stride.enabled and 30 or 45 ) or nil end,
gcd = "off",
talent = "heroic_leap",
startsCombat = false,
texture = 236171,
handler = function ()
if talent.bounding_stride.enabled then applyBuff( "bounding_stride" ) end
end,
},
heroic_throw = {
id = 57755,
cast = 0,
cooldown = 1,
gcd = "spell",
startsCombat = true,
texture = 132453,
handler = function ()
if talent.improved_heroic_throw.enabled then applyDebuff( "target", "deep_wounds" ) end
end,
},
ignore_pain = {
id = 190456,
cast = 0,
cooldown = 1,
gcd = "off",
spend = 35,
spendType = "rage",
talent = "ignore_pain",
startsCombat = false,
texture = 1377132,
toggle = "defensives",
readyTime = function ()
if settings.overlap_ignore_pain then return end
if buff.ignore_pain.up and buff.ignore_pain.v1 > 0.3 * stat.attack_power * 3.5 * ( 1 + stat.versatility_atk_mod / 100 ) then
return buff.ignore_pain.remains - gcd.max
end
return 0
end,
handler = function ()
applyBuff( "ignore_pain" )
end,
},
impending_victory = {
id = 202168,
cast = 0,
cooldown = 25,
gcd = "spell",
spend = 10,
spendType = "rage",
talent = "impending_victory",
startsCombat = false,
texture = 589768,
handler = function ()
gain( health.max * 0.3, "health" )
if conduit.indelible_victory.enabled then applyBuff( "indelible_victory" ) end
end,
},
intervene = {
id = 3411,
cast = 0,
cooldown = 30,
gcd = "off",
talent = "intervene",
startsCombat = false,
texture = 132365,
handler = function ()
if legendary.reprisal.enabled then
applyBuff( "shield_block", 4 )
applyBuff( "revenge" )
gain( 20, "rage" )
end
end,
},
intimidating_shout = {
id = 316593,
copy = { 316593, 5246 },
cast = 0,
cooldown = 90,
gcd = "spell",
talent = "intimidating_shout",
startsCombat = true,
texture = 132154,
toggle = "cooldowns",
handler = function ()
applyDebuff( "target", "intimidating_shout" )
active_dot.intimidating_shout = max( active_dot.intimidating_shout, active_enemies )
end,
},
last_stand = {
id = 12975,
cast = 0,
cooldown = function() return 180 - ( talent.bolster.enabled and 60 or 0 ) end,
gcd = "off",
talent = "last_stand",
startsCombat = false,
texture = 135871,
toggle = "cooldowns",
usable = function()
if settings.last_stand_offensively and talent.unnerving_focus.enabled then
return true
else
return incoming_damage_3s > 0.3 * health.max, "requires 30% health incoming damage in 3s"
end
end,
handler = function ()
applyBuff( "last_stand" )
if talent.bolster.enabled then
applyBuff( "shield_block", buff.last_stand.duration )
end
if talent.unnerving_focus.enabled then
applyBuff( "unnerving_focus" )
end
end,
},
oppressor = {
id = 205800,
cast = 0,
cooldown = 20,
gcd = "spell",
pvptalent = "oppressor",
startsCombat = false,
texture = 136080,
handler = function ()
applyDebuff( "target", "focused_assault" )
end
},
piercing_howl = {
id = 12323,
cast = 0,
cooldown = 30,
gcd = "spell",
talent = "piercing_howl",
startsCombat = false,
texture = 136147,
handler = function ()
applyDebuff( "target", "piercing_howl" )
active_dot.piercing_howl = max( active_dot.piercing_howl, active_enemies )
end,
},
pummel = {
id = 6552,
cast = 0,
cooldown = function () return 15 - (talent.concussive_blows.enabled and 1 or 0) - (talent.honed_reflexes.enabled and 1 or 0) end,
gcd = "off",
startsCombat = true,
texture = 132938,
toggle = "interrupts",
interrupt = true,
debuff = "casting",
readyTime = state.timeToInterrupt,
handler = function ()
interrupt()
if talent.concussive_blows.enabled then
applyDebuff( "target", "concussive_blows" )
end
end,
},
rallying_cry = {
id = 97462,
cast = 0,
cooldown = 180,
gcd = "spell",
talent = "rallying_cry",
startsCombat = false,
texture = 132351,
toggle = "cooldowns",
shared = "player",
handler = function ()
applyBuff( "rallying_cry" )
gain( (talent.inspiring_presence.enabled and 0.25 or 0.15) * health.max, "health" )
end,
},
ravager = {
id = 228920,
cast = 0,
charges = function () return (talent.storm_of_steel.enabled and 2 or 1) end,
cooldown = 90,
recharge = 90,
gcd = "spell",
talent = "ravager",
startsCombat = true,
texture = 970854,
toggle = "cooldowns",
handler = function ()
applyBuff( "ravager" )
end,
},
rend = {
id = 394062,
cast = 0,
cooldown = 0,
gcd = "spell",
spend = 30,
spendType = "rage",
talent = "rend",
startsCombat = true,
texture = 132155,
handler = function ()
applyDebuff ( "target", "rend" )
end,
},
revenge = {
id = 6572,
cast = 0,
cooldown = 0,
gcd = "spell",
spend = function ()
if buff.revenge.up then return 0 end
return talent.barbaric_training.enabled and 30 or 20
end,
spendType = "rage",
talent = "revenge",
startsCombat = true,
texture = 132353,
usable = function ()
if action.revenge.cost == 0 then return true end
if toggle.defensives and buff.ignore_pain.down and incoming_damage_5s > 0.1 * health.max then return false, "don't spend on revenge if ignore_pain is down and there is incoming damage" end
if settings.free_revenge and action.revenge.cost ~= 0 then return false, "free_revenge is checked and revenge is not free" end
return true
end,
handler = function ()
if state.set_bonus.tier29_2pc > 0 then applyBuff( "vanguards_determination" ) end
if buff.revenge.up then removeBuff( "revenge" ) end
if talent.show_of_force.enabled then applyBuff( "show_of_force" ) end
applyDebuff ( "target", "deep_wounds" )
end,
},
shattering_throw = {
id = 64382,
cast = 1.5,
cooldown = 180,
gcd = "spell",
talent = "shattering_throw",
startsCombat = false,
texture = 311430,
toggle = "cooldowns",
handler = function ()
end,
},
shield_bash = {
id = 198912,
cast = 0,
cooldown = 10,
gcd = "spell",
spend = -3,
spendType = "rage",
pvptalent = "shield_bash",
startsCombat = false,
texture = 132357,
handler = function ()
applyDebuff ( "target", "shield_bash")
end,
},
shield_block = {
id = 2565,
cast = 0,
charges = 2,
cooldown = 16,
recharge = 16,
hasteCD = true,
gcd = "off",
toggle = "defensives",
defensive = true,
spend = 30,
spendType = "rage",
startsCombat = false,
texture = 132110,
nobuff = function()
if not settings.stack_shield_block or not legendary.reprisal.enabled then return "shield_block" end
end,
handler = function ()
applyBuff( "shield_block" )
end,
},
shield_charge = {
id = 385952,
cast = 0,
cooldown = 45,
gcd = "off",
spend = -20,
spendType = "rage",
talent = "shield_charge",
startsCombat = true,
texture = 4667427,
handler = function ()
if talent.battering_ram.enabled then
applyBuff( "battering_ram" )
end
if talent.champions_bulwark.enabled then
applyBuff( "shield_block" )
applyBuff( "revenge" )
gain( 20, "rage" )
end
end,
},
shield_slam = {
id = 23922,
cast = 0,
cooldown = function () return 9 - (talent.honed_reflexes.enabled and 1 or 0) end,
hasteCD = true,
gcd = "spell",
spend = function ()
local reduction = 0
-- The Wall Legendary overtakes the new Impenetrable Wall talent, they do not stack in 10.0
if legendary.the_wall.enabled then reduction = -5
elseif talent.impenetrable_wall.enabled then reduction = -3
end
return
( -15 + reduction + ( talent.heavy_repercussions.enabled and -2 or 0 ) )
* ( buff.violent_outburst.up and 1.5 or 1) -- Build 45969
* ( buff.unnerving_focus.up and 1.5 or 1)
end,
spendType = "rage",
startsCombat = true,
texture = 134951,
handler = function ()
if talent.brace_for_impact.enabled then applyBuff ( "brace_for_impact" ) end
if talent.punish.enabled then applyDebuff ( "target" , "punish" ) end
if ( legendary.the_wall.enabled or talent.impenetrable_wall.enabled ) and cooldown.shield_wall.remains > 0 then
reduceCooldown( "shield_wall", 5 )
end
if talent.heavy_repercussions.enabled and buff.shield_block.up then
buff.shield_block.expires = buff.shield_block.expires + 1
end
if buff.violent_outburst.up then
applyBuff( "ignore_pain" )
removeBuff( "violent_outburst" )
end
if buff.outburst.up then
applyBuff( "ignore_pain" )
removeBuff( "outburst" )
end
end,
},
shield_wall = {
id = 871,
cast = 0,
charges = function () return 1 + ( talent.shield_wall.enabled and 1 or 0 ) + ( legendary.unbreakable_will.enabled and 1 or 0 ) end,
cooldown = function() return 210 - ( conduit.stalwart_guardian.enabled and 20 or 0 ) end,
recharge = function() return 210 - ( conduit.stalwart_guardian.enabled and 20 or 0 ) end,
gcd = "off",
talent = "shield_wall",
startsCombat = false,
texture = 132362,
toggle = "cooldowns",
handler = function ()
applyBuff( "shield_wall" )
if talent.immovable_object.enabled then applyBuff ( "avatar", 10 ) end
end,
},
shockwave = {
id = 46968,
cast = 0,
cooldown = function () return
((
( talent.rumbling_earth.enabled and active_enemies >= 3 ) and 25 or 40)
- ( conduit.disturb_the_peace.enabled and 5 or 0 )
) end,
gcd = "spell",
talent = "shockwave",
startsCombat = true,
texture = 236312,
toggle = "interrupts",
debuff = function () return settings.shockwave_interrupt and "casting" or nil end,
readyTime = function () return settings.shockwave_interrupt and timeToInterrupt() or nil end,
usable = function () return not target.is_boss end,
handler = function ()
applyDebuff( "target", "shockwave" )
active_dot.shockwave = max( active_dot.shockwave, active_enemies )
if not target.is_boss then interrupt() end
end,
},
slam = {
id = 1464,
cast = 0,
cooldown = 0,
gcd = "spell",
spend = 20,
spendType = "rage",
startsCombat = true,
texture = 132340,
handler = function ()
end,
},
spell_block = {
id = 392966,
cast = 0,
cooldown = 90,
gcd = "off",
talent = "spell_block",
startsCombat = false,
texture = 132358,
toggle = "cooldowns",
handler = function ()
applyBuff( "spell_block" )
end,
},
spell_reflection = {
id = 23920,
cast = 0,
charges = 1,
cooldown = 25,
recharge = 25,
gcd = "off",
talent = "spell_reflection",
startsCombat = false,
texture = 132361,
toggle = "interrupts",
debuff = "casting",
readyTime = state.timeToInterrupt,
handler = function ()
applyBuff( "spell_reflection" )
end,
},
storm_bolt = {
id = 107570,
cast = 0,
cooldown = 30,
gcd = "spell",
talent = "storm_bolt",
startsCombat = true,
texture = 613535,
handler = function ()
applyDebuff( "target", "storm_bolt" )
end,
},
taunt = {
id = 355,
cast = 0,
cooldown = 8,
gcd = "off",
startsCombat = true,
texture = 136080,
handler = function ()
applyDebuff( "target", "taunt" )
end,
},
thunder_clap = {
id = 6343,
cast = 0,
cooldown = function () return haste * ( ( buff.avatar.up and talent.unstoppable_force.enabled ) and 3 or 6 ) end,
gcd = "spell",
hasteCD = true,
spend = function () return -5
* ( buff.violent_outburst.up and 2 or 1 )
* ( buff.unnerving_focus.up and 1.5 or 1 ) end,
spendType = "rage",
talent = "thunder_clap",
startsCombat = true,
texture = 136105,
handler = function ()
applyDebuff( "target", "thunder_clap" )
active_dot.thunder_clap = max( active_dot.thunder_clap, active_enemies )
if ( legendary.thunderlord.enabled or talent.thunderlord.enabled ) and cooldown.demoralizing_shout.remains > 0 then
reduceCooldown( "demoralizing_shout", min( 3, active_enemies ) )
end
if talent.blood_and_thunder.enabled and talent.rend.enabled then -- Blood and Thunder now directly applies Rend to 5 nearby targets
applyDebuff( "target", "rend" )
active_dot.rend = min( active_enemies, 5 )
end
if buff.violent_outburst.up then
applyBuff( "ignore_pain" )
removeBuff( "violent_outburst" )
end
end,
},
thunderous_roar = {
id = 384318,
cast = 0,
cooldown = function() return 90 - (talent.uproar.enabled and 30 or 0 ) end,
gcd = "spell",
spend = -10,
spendType = "rage",
talent = "thunderous_roar",
startsCombat = true,
texture = 642418,
toggle = "cooldowns",
handler = function ()
applyDebuff ("target", "thunderous_roar" )
active_dot.thunderous_roar = max( active_dot.thunderous_roar, active_enemies )
end,
},
titanic_throw = {
id = 384090,
cast = 0,
cooldown = 3,
gcd = "spell",
talent = "titanic_throw",
startsCombat = true,
texture = 132453,
handler = function ()
if talent.improved_heroic_throw.enabled then
applyDebuff( "target", "deep_wounds" )
active_dot.deep_wounds = min( active_enemies, 5 )
end
end,
},
victory_rush = {
id = 34428,
cast = 0,
cooldown = 0,
gcd = "spell",
startsCombat = true,
texture = 132342,
buff = "victorious",
handler = function ()
removeBuff( "victorious" )
gain( 0.2 * health.max, "health" )
if conduit.indelible_victory.enabled then applyBuff( "indelible_victory" ) end
end,
},
whirlwind = {
id = 1680,
cast = 0,
cooldown = 0,
gcd = "spell",
spend = 30,
spendType = "rage",
startsCombat = false,
texture = 132369,
handler = function ()
end,
},
wrecking_throw = {
id = 384110,
cast = 0,
cooldown = 45,
gcd = "spell",
talent = "wrecking_throw",
startsCombat = false,
texture = 460959,
handler = function ()
end,
},
} )
spec:RegisterSetting( "free_revenge", true, {
name = "Only |T132353:0|t Revenge when Free",
desc = "If checked, the |T132353:0|t Revenge ability will only be recommended when it costs 0 Rage to use.",
type = "toggle",
width = "full"
} )
spec:RegisterSetting( "shockwave_interrupt", true, {
name = "Only |T236312:0|t Shockwave as Interrupt",
desc = "If checked, |T236312:0|t Shockwave will only be recommended when your target is casting (and talented).",
type = "toggle",
width = "full"
} )
spec:RegisterSetting( "overlap_ignore_pain", false, {
name = "Overlap |T1377132:0|t Ignore Pain",
desc = "If checked, |T1377132:0|t Ignore Pain can be recommended while it is already active. This setting may cause you to spend more Rage on mitigation.",
type = "toggle",
width = "full"
} )
spec:RegisterSetting( "stack_shield_block", false, {
name = "Overlap |T132110:0|t Shield Block",
desc = function()
return "If checked, the addon can recommend overlapping |T132110:0|t Shield Block usage. \n\n" ..
"This setting avoids leaving Shield Block at 2 charges, which wastes cooldown recovery time."
end,
type = "toggle",
width = "full"
} )
spec:RegisterSetting( "last_stand_offensively", false, {
name = "Use |T135871:0|t Last Stand Offensively",
desc = function()
return "If checked, the addon will recommend using |T135871:0|t Last Stand to generate rage.\n\n"
.. "If unchecked, the addon will only recommend |T135871:0|t Last Stand defensively after taking significant damage.\n\n"
.. ( state.talent.unnerving_focus.enabled and "|cFF00FF00" or "|cFFFF0000" ) .. "Requires |T571316:0|t Unnerving Focus|r"
end,
type = "toggle",
width = "full"
} )
spec:RegisterOptions( {
enabled = true,
aoe = 2,
nameplates = true,
nameplateRange = 8,
damage = true,
damageExpiration = 8,
potion = "potion_of_spectral_strength",
package = "Protection Warrior",
} )
spec:RegisterPack( "Protection Warrior", 20221104.1, [[Hekili:1M1EVTTnq8plTdWXgRqr2o2oTioaBDdyTOOOyUa7)KeTeTTwKe9OOCBgm0N9DhPEqQxoPRff1rM8EXJ3RFYotD(SZMaIG68Xz2ZMnDQ9nwZMpB(0LoBepEK6S5iX)bYE4Hesm85N4mb1xeYsY9(lcNhY4inpgXibOSszzCFGUdcXX03C917dfhY2A5ZIVonmolIGS6Zj7e439V2zZ2SWiX7sC22PHyFliZJuFNpUAoi1WGaQIuAQVZgq1C2UWiqHePrLADKtbLTLi(51xVlIMEqQS83N)(Fk373)k1ptqdY9ONO8hZ9eHXu4ZdWhGay8CVWu4XtKWiY2iQv(7lKlin)de(E6Rc3Tg5ATT(EhZIJPr6RagDuKlNc2GYDH6)3O7izrICVF5tF4kqrV8pOCwOFU3BLY(LfQp3RC9pqjhZ92XIIyFbn7Tpwsly1SCVa4)Pm8meqIj4QKeGS90ekhCM5E)jSOXP4GuYUrGGXJskvict2NAvSU6qoINLq3XGNS40J8Wus0iFglkG9LelfjWgXKWK0727h0Tx6PlA4o7K1ulnttxIHjck)eCIqHUnB3oGr4RGaqZz0yoCeV7w7ZNLpSA1ijnrKuHBQaChwzhN0Hw1vrwk1nuqJtrvuDqHWabHxDqxdN0ZNLcVyNmd7CBeJf4UlJ)yLH2nDuEkL)a4AgMUDHCQuMdtgjXNMk4KixFsu0W0c5IjbuURFK62xs5Pqwenr4YYeBZ4PcGNrJhl3kLsbZeIIdSaxP)d3VSomi9qinkWnnIex6IUF2KjgMM0g6xrOCmYIy4tTpcNplWqhHfM45kyUbH07MTOr6gH7Y25UfU3LPB17veU0k8bpNfc(aLejoyD0xC)missL8Q2l1s3RD)8jd6cmcC3NW4u3JW6YQgTu16z2DzbRV1E0l8zGrssewWFehEKprfOdBUOpdGe8Ok2Vyzi4X)bP7tX5s7AodOXmiMj8FX730dWvsHaee8oYAlJfJBDcYiPwGLavddkf0knbvLKamxU)n)FvuhPWLYEXIU19aSuwBWK5E8DDLnmKtDU93UinS2o1YKxHLMy725cfFwp1iIxJsm8ACB(rJQOILX6Lv0gkqEYOUsn0nGARVNO7xBxL4wV8DRnLs74dL0gi4qwNFPDhod8amyDnjRqyGr5HSex13CJctfVch0znHP6HnqHaJUEqP32cr2ggAJRx8NShRsjGLFWOybH7tsWIBCoy0OUl6Rz4Yd3FqK6(3zb7JbQWPAkN7bmyGJtapCJfRR)1Cz9ttZ908N6kP4a1wrfBaCsvJy11wgcT92pTMtg9m04U1HSERa6jiufNTCdm1xkSB9qMoB(cHNGJP4S5Z4yGHXhzCboZfmm4vbQb2Uk3Jt)NmOHCq58wKmblMiNLegSb0CkmM1hctGTU5nWqASeqxYTVQ9ShxPMERJDkdYbkgp9RtQK5IFaYC53vzM)(3jDDOOUroon2g2dZgqxdmHEM4aIwytfoG3IJM7SrsccEaI9G)8rjOef)oBkc1C2uOqNF1raxFgKOU6BqYCDs0JTAq3n60PfIAsgyMfbuFlwyrsXqwyVAwzG1RSXNdJQYdji0P(Yq65KdsBXL9Cl1jrl5PH)Oi3OYFOzILmRg5xHwJhEuT4ZgeM(rwr76Cp7wozfgSb9XnWKDbhDjBA4sACuAINZeo3pi0C6UJUXyL7ncky1BoRC7EGZL7DhOq)aRyYxRcx6m47Bx1TH71kIPmkS)WEDmGsPog0R0NbhaORP35ZAlSALKM2tDL7n5cMCTTvbefnVv9AE9GFeSJ1vUwL5zIYPwrvWrrfD7W(HoyVgikY)RF(8xbqf5FQ9ZwavixL83S4WL53esRuiZEMfbXBwvqX4c)CtSS5E3dTanZf6cqhs2mzyYK(RQoD(Z0(mlsR8bsbDHQ91W6LrqTXfld3NTqRSOeuTu2lAum0aXCJIHtFI5F1o6wJ6RCDfPI9pjTKS5LjIdDx0UXfAOnZeRsxRHFB0bPdZCTYo7)CSwvtbi4fOjAcnV00RQajjFXqhhaByDbPgy(0lDHsAPTPK6drTKQHao1uWRAiyD40nP9MVFgrp1Hn13IfdzBpjry2eOlHoWDsFfuEkxyZT)(OMgNUE1(evhJI3saongMw0FFJXDjivF0QUsD9(cKLwgUw5KI7)URe0AAxP4LwB)DP6jD812gva13(U1MkR2pkNzS)(zxmUTAEIL26ti3mvqQMl02RVB(cviJw7gDak8(BhEP6SA1qnFVhkCyUQFMhejgQNMT1QgtRX77WG5sGsOamqxz8YpAIxQ)jn1gRtRLPX7lrkbdClnEvjTqVu97e50epx9VAutMu)Z5)c]] )