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.
1902 lines
77 KiB
1902 lines
77 KiB
-- WarriorProtection.lua
|
|
-- October 2023
|
|
|
|
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
|
|
|
|
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,
|
|
},
|
|
} )
|
|
|
|
spec:RegisterTalents( {
|
|
-- Warrior
|
|
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 yds.
|
|
bitter_immunity = { 90356, 383762, 1 }, -- Restores 20% health instantly and removes all diseases, poisons and curses affecting you.
|
|
blood_and_thunder = { 90342, 384277, 1 }, -- Thunder Clap deals 10% increased damage. If you have Rend, Thunder Clap affects 5 nearby targets with Rend.
|
|
bounding_stride = { 90355, 202163, 1 }, -- Reduces the cooldown of Heroic Leap by 15 sec, and Heroic Leap now also increases your movement speed by 70% for 3 sec.
|
|
cacophonous_roar = { 90383, 382954, 1 }, -- Intimidating Shout can withstand 200% more damage before breaking.
|
|
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%.
|
|
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%.
|
|
fast_footwork = { 90371, 382260, 1 }, -- Movement speed increased by 5%.
|
|
furious_blows = { 90336, 390354, 1 }, -- Auto-attack speed increased by 5%.
|
|
heroic_leap = { 90346, 6544 , 1 }, -- Leap through the air toward a target location, slamming down with destructive force to deal 415 Physical damage to all enemies within 8 yards, and resetting the remaining cooldown on Taunt.
|
|
impending_victory = { 90326, 202168, 1 }, -- Instantly attack the target, causing 883 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.
|
|
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.
|
|
leeching_strikes = { 90344, 382258, 1 }, -- Leech increased by 5%.
|
|
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.
|
|
overwhelming_rage = { 90378, 382767, 2 }, -- Maximum Rage increased by 15.
|
|
pain_and_gain = { 90353, 382549, 1 }, -- When you take any damage, heal for 3.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%.
|
|
rallying_cry = { 90331, 97462 , 1 }, -- Lets loose a rallying cry, granting all party or raid members within 40 yards 10% temporary and maximum health for 10 sec.
|
|
reinforced_plates = { 90368, 382939, 1 }, -- Armor increased by 20%.
|
|
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,448 Physical damage, ignoring armor, and removing any magical immunities. Deals up to 500% increased damage to absorb shields.
|
|
shockwave = { 90375, 46968 , 1 }, -- Sends a wave of force in a frontal cone, causing 530 damage and stunning all enemies within 10 yards for 2 sec. Generates 10 Rage.
|
|
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,915 Physical damage instantly and an additional 2,978 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_reflection = { 90385, 23920 , 1 }, -- Raise your shield, reflecting the first spell cast on you, and reduce magic damage you take by 25% for 5 sec.
|
|
storm_bolt = { 90337, 107570, 1 }, -- Hurls your weapon at an enemy, causing 504 Physical damage and stunning for 4 sec.
|
|
thunderous_roar = { 90359, 384318, 1 }, -- Roar explosively, dealing 3,053 Physical damage to enemies within 12 yds and cause them to bleed for 3,430 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,236 Physical damage to it and 5 nearby enemies. Generates high threat.
|
|
uproar = { 90357, 391572, 1 }, -- Thunderous Roar's cooldown reduced by 30 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.
|
|
wrecking_throw = { 90351, 384110, 1 }, -- Hurl your weapon at the enemy, causing 1,448 Physical damage, ignoring armor. Deals up to 500% increased damage to absorb shields.
|
|
|
|
-- Protection
|
|
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 = { 92639, 401150, 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 = { 90377, 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 20%, and Shield Charge increases your auto-attack damage and 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.
|
|
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.
|
|
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%.
|
|
brace_for_impact = { 90296, 386030, 1 }, -- Using Shield Slam increases the damage of Shield Slam by 5% for 16 sec, and it increases the block value of your shield by 3%. Stacking up to 5 times.
|
|
brutal_vitality = { 90451, 384036, 1 }, -- 10% of damage you deal adds to your active Ignore Pain.
|
|
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.
|
|
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.
|
|
defenders_aegis = { 90310, 397103, 1 }, -- Shield Wall gains 1 additional charge, and its cooldown is reduced by 30 sec.
|
|
defensive_stance = { 90330, 386208, 1 }, -- A defensive combat state that reduces all damage you take by 20%, and all damage you deal by 5%. Lasts until canceled.
|
|
demoralizing_shout = { 90305, 1160 , 1 }, -- Demoralizes all enemies within 15 yards, reducing the damage they deal to you by 20% for 8 sec.
|
|
devastator = { 90299, 236279, 1 }, -- Your auto attacks deal an additional 390 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.
|
|
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.
|
|
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 110% of the damage dealt by Deep Wounds.
|
|
heavy_repercussions = { 90319, 203177, 1 }, -- Shield Slam generates 2 more Rage and extends the duration of Shield Block by 1.0 sec.
|
|
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 50% of damage taken, up to 19,362 total damage prevented.
|
|
immovable_object = { 90364, 394307, 1 }, -- Activating Avatar or Shield Wall casts the other at reduced effectiveness.
|
|
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.
|
|
instigate = { 90301, 394311, 1 }, -- Devastate deals 20% increased damage and generates 2 Rage. Devastator deals 10% increased damage and generates 1 Rage.
|
|
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.
|
|
massacre = { 90313, 281001, 1 }, -- Execute is now usable on targets below 35% health.
|
|
onehanded_weapon_specialization = { 90324, 382895, 1 }, -- Damage with one-handed weapons and Leech increased by 5%.
|
|
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.
|
|
ravager = { 90432, 228920, 1 }, -- Throws a whirling weapon at the target location that chases nearby enemies, inflicting 9,709 Physical damage to all enemies over 10.7 sec. Deals reduced damage beyond 8 targets. Generates 10 Rage each time it deals damage.
|
|
rend = { 90302, 394062, 1 }, -- Wounds the target, causing 567 Physical damage instantly and an additional 1,712 Bleed damage over 15 sec.
|
|
revenge = { 90298, 6572 , 1 }, -- Swing in a wide arc, dealing 831 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.
|
|
shield_charge = { 90317, 385952, 1 }, -- Charge to an enemy with your shield, dealing 4,859 Physical damage to it and 1,943 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 12%.
|
|
shield_wall = { 90312, 871 , 1 }, -- Reduces all damage you take by 40% for 8 sec.
|
|
show_of_force = { 90320, 385843, 1 }, -- Revenge damage increased by 10% and Revenge increases the damage of your next Thunder Clap by 20%.
|
|
sidearm = { 90334, 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 441 Physical damage.
|
|
spell_block = { 90450, 392966, 1 }, -- You are able to block spells for 30 sec.
|
|
storm_of_steel = { 90431, 382953, 1 }, -- Ravager's damage is reduced by 30% but it now has 2 charges and generates 20 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 Execute 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 808 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.5 sec, up to 4.5 sec.
|
|
tough_as_nails = { 90450, 385888, 1 }, -- Blocking an attack deals 434 Physical damage to the attacker, ignoring armor. Generates high threat.
|
|
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%.
|
|
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 5 Rage, and increases your movement speed by 30% for 8 sec.
|
|
} )
|
|
|
|
-- PvP Talents
|
|
spec:RegisterPvpTalents( {
|
|
battlefield_commander = 5629, -- (424742) Your Shout abilities have additional effects.; $@spellicon6673 $@spellname6673:; Increases Stamina by $s1%.; $@spellicon12323 $@spellname12323:; Roots targets hit for $424752d.; $@spellicon384100 $@spellname384100:; Range increased by $s2 yds.; $@spellicon5246 $@spellname5246:; Cooldown reduced by ${$s3/-1000} sec.; $@spellicon97462 $@spellname97462:; Removes movement impairing effects and grants $s4% movement speed to allies.; $@spellicon384318 $@spellname384318:; Targets receive $s5% more damage from all sources while bleeding.
|
|
bodyguard = 168 , -- (213871) Protect an ally, causing $m1% of all Physical damage they take to be transfered to you. When the target takes Physical damage, your Shield Slam cooldown has a $231834s1% chance to be reset. Bodyguard is cancelled if the target is further than $m2 yards from you. Lasts $d.; Only one target can be Bodyguarded at a time.
|
|
demolition = 5374, -- (329033) Reduces the cooldown of your Shattering Throw or Wrecking Throw by $s1% and increases its damage to absorb shields by an additional ${$s3*5}%.
|
|
disarm = 24 , -- (236077) Disarm the enemy's weapons and shield for $d. Disarmed creatures deal significantly reduced damage.
|
|
dragon_charge = 831 , -- (206572) Run at high speed at a distance in front of you. All enemies in your path will take $206579s1 Physical damage and be knocked back.
|
|
morale_killer = 171 , -- (199023) Reduces the cooldown of Demoralizing Shout by ${($m2/1000)*-1} sec, and Demoralizing Shout now reduces the damage enemies deal to all targets, not just you.
|
|
oppressor = 845 , -- (205800) [206891] You focus the assault on this target, increasing their damage taken by $s1% for $d. Each unique player that attacks the target increases the damage taken by an additional $s1%, stacking up to $u times.; Your melee attacks refresh the duration of Focused Assault.
|
|
rebound = 833 , -- (213915) Spell Reflection reflects the next $s3 incoming spells cast on you and reflected spells deal $s1% extra damage to the attacker.; Spell Reflection's cooldown is increased by ${$s2/1000} sec.
|
|
safeguard = 5626, -- (424654) Intervene now has ${$s1+1} charges and reduces the ally's damage taken by $424655s1% for $424655d.; Intervene's cooldown is increased by ${$s2/1000} sec.
|
|
shield_bash = 173 , -- (198912) When Shield Slam is used on targets that are casting, it reduces their damage done by $23922s4% for $23922d and the cooldown is instantly reset.
|
|
storm_of_destruction = 5627, -- (236308) Reduces the cooldown of $?c2[Ravager][Bladestorm] by $m1%, and $?c2[Ravager][Bladestorm] now also snares all targets you hit by $424597s1% for $424597d.
|
|
thunderstruck = 175 , -- (199045) Thunder Clap roots all targets it damages for $199042d.
|
|
warbringer = 5432, -- (356353) Charge roots enemies for ${1+$s1/1000} sec and emanates a shockwave past the target, rooting enemies and dealing $356356s2 Physical damage in a $356356a1 yd cone.
|
|
warpath = 178 , -- (199086) When landing with Heroic Leap, all targets are stunned for $199085d.
|
|
} )
|
|
|
|
|
|
-- Auras
|
|
spec:RegisterAuras( {
|
|
avatar = {
|
|
id = 401150,
|
|
duration = 20,
|
|
max_stack = 1,
|
|
copy = 107574
|
|
},
|
|
battering_ram = {
|
|
id = 394313,
|
|
duration = 20,
|
|
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 = 120,
|
|
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
|
|
},
|
|
-- Target Swapping
|
|
execute_ineligible = {
|
|
duration = 3600,
|
|
max_stack = 1,
|
|
generate = function( t )
|
|
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
|
|
},
|
|
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 = 393968,
|
|
duration = 12,
|
|
max_stack = 15,
|
|
copy = 383290
|
|
},
|
|
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
|
|
},
|
|
rallying_cry = {
|
|
id = 97463,
|
|
duration = 10,
|
|
max_stack = 1,
|
|
shared = "player",
|
|
},
|
|
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
|
|
},
|
|
-- Damage taken reduced by $w1%.
|
|
safeguard = {
|
|
id = 424655,
|
|
duration = 5.0,
|
|
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 ( talent.enduring_defenses.enabled and 8 or 6 ) + ( 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
|
|
},
|
|
stance = {
|
|
alias = { "battle_stance", "berserker_stance", "defensive_stance" },
|
|
aliasMode = "first",
|
|
aliasType = "buff",
|
|
duration = 3600,
|
|
},
|
|
storm_bolt = {
|
|
id = 107570,
|
|
duration = 4,
|
|
max_stack = 1
|
|
},
|
|
-- Movement slowed by $s1%.
|
|
storm_of_destruction = {
|
|
id = 424597,
|
|
duration = 6.0,
|
|
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
|
|
},
|
|
wild_strikes = {
|
|
id = 392778,
|
|
duration = 10,
|
|
max_stack = 1
|
|
}
|
|
} )
|
|
|
|
|
|
-- Dragonflight Season 1
|
|
spec:RegisterGear( "tier29", 200426, 200428, 200423, 200425, 200427 )
|
|
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:RegisterAura( "vanguards_determination", {
|
|
id = 394056,
|
|
duration = 5,
|
|
max_stack = 1,
|
|
} )
|
|
|
|
spec:RegisterGear( "tier30", 202446, 202444, 202443, 202442, 202441 )
|
|
spec:RegisterSetBonuses( "tier30_2pc", 405581, "tier30_4pc", 405582 )
|
|
--(2) Shield Slam deals 15% increased damage and reduces the cooldown of Last Stand by 1 sec. During Last Stand these effects are doubled.
|
|
--(4) For 10 sec after Last Stand ends, Shield Slam unleashes a wave of force dealing (45% of Attack power) Physical damage to enemies in front of you and reducing damage they deal to you by 5% for 5 sec.
|
|
spec:RegisterAura( "earthen_tenacity", {
|
|
id = 410218,
|
|
duration = 5,
|
|
max_stack = 1
|
|
} )
|
|
|
|
spec:RegisterGear( "tier31", 207180, 207181, 207182, 207183, 207185 )
|
|
spec:RegisterSetBonuses( "tier31_2pc", 422927, "tier31_4pc", 422928 )
|
|
-- (2) Spending Rage has a chance to cause your next Shield Slam to consume your bleeds on a target, instantly dealing 40% of the remaining damage of your Deep Wounds and Rend and 100% of Thunderous Roar's, and reducing your damage taken by 10% for 5 sec.
|
|
-- (4) For each bleed effect consumed from a target, your damage taken is reduced by an additional 2%. When Shield Slam consumes a bleed, the cooldown of Thunder Clap is reset and the cooldown of Thunderous Roar is reduced by 3.0 sec.
|
|
spec:RegisterAuras( {
|
|
fervid = {
|
|
id = 425517,
|
|
duration = 10,
|
|
max_stack = 1
|
|
},
|
|
fervid_opposition = {
|
|
id = 427413,
|
|
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 )
|
|
|
|
local TriggerEarthenTenacity = setfenv( function()
|
|
applyBuff( "earthen_tenacity" )
|
|
end, state )
|
|
|
|
spec:RegisterHook( "reset_precast", function ()
|
|
if set_bonus.tier30_4pc > 0 and buff.last_stand.up then
|
|
state:QueueAuraExpiration( "last_stand_earthen_tenacity", TriggerEarthenTenacity, buff.last_stand.expires )
|
|
end
|
|
end )
|
|
|
|
-- Abilities
|
|
spec:RegisterAbilities( {
|
|
avatar = {
|
|
id = 401150,
|
|
cast = 0,
|
|
cooldown = 90,
|
|
gcd = "off",
|
|
|
|
spend = function () return buff.unnerving_focus.up and -15 or -10 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,
|
|
nobuff = function() return settings.stance_weaving and "battle_stance" or "stance" end,
|
|
|
|
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 = "defensives",
|
|
|
|
handler = function ()
|
|
applyBuff( "berserker_rage" )
|
|
end,
|
|
},
|
|
|
|
|
|
berserker_shout = {
|
|
id = 384100,
|
|
cast = 0,
|
|
cooldown = 60,
|
|
gcd = "off",
|
|
|
|
talent = "berserker_shout",
|
|
startsCombat = false,
|
|
texture = 136009,
|
|
|
|
toggle = "defensives",
|
|
|
|
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 ()
|
|
removeBuff( "dispellable_disease" )
|
|
removeBuff( "dispellable_poison" )
|
|
removeBuff( "dispellable_curse" )
|
|
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",
|
|
icd = 1,
|
|
|
|
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,
|
|
essential = true,
|
|
nobuff = function() return settings.stance_weaving and "defensive_stance" or "stance" end,
|
|
|
|
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",
|
|
|
|
spend = function() return ( talent.instigate.enabled and -2 or 0 ) * ( buff.unnerving_focus.up and 1.5 or 1) end,
|
|
spendType = "rage",
|
|
|
|
startsCombat = true,
|
|
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 = 0,
|
|
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()
|
|
if buff.sudden_death.up then return 0 end
|
|
local threshold = settings.reserve_rage + 40
|
|
if rage.current >= threshold or ( buff.shield_block.remains > 3 and buff.ignore_pain.remains > 3 ) or not tanking then return 0 end
|
|
return rage[ "time_to_" .. ( settings.reserve_rage + 40 ) ]
|
|
end,
|
|
|
|
handler = function()
|
|
if not buff.sudden_death.up then
|
|
local cost = min( rage.current, 40 )
|
|
spend( cost, "rage", nil, true )
|
|
else
|
|
removeBuff( "sudden_death" )
|
|
end
|
|
if talent.juggernaut.enabled then addStack( "juggernaut" ) end
|
|
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",
|
|
icd = 0.8,
|
|
|
|
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,
|
|
|
|
usable = function () return target.minR > 7, "requires 8 yard range or more" end,
|
|
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 * health.max then
|
|
return buff.ignore_pain.remains - gcd.max
|
|
end
|
|
end,
|
|
|
|
handler = function ()
|
|
if buff.ignore_pain.up then
|
|
buff.ignore_pain.expires = query_time + class.auras.ignore_pain.duration
|
|
-- TODO: Remove retail/PTR compatibility statement post 10.1 release. (3.5 [retail] vs 4.375 [10.1 patch])
|
|
buff.ignore_pain.v1 = min( 0.3 * health.max, buff.ignore_pain.v1 + stat.attack_power * (Hekili.CurrentBuild > 100007 and 4.375 or 3.5) * ( 1 + stat.versatility_atk_mod / 100 ) )
|
|
else
|
|
applyBuff( "ignore_pain" )
|
|
-- TODO: Remove retail/PTR compatibility statement post 10.1 release. (3.5 [retail] vs 4.375 [10.1 patch])
|
|
buff.ignore_pain.v1 = min( 0.3 * health.max, stat.attack_power * (Hekili.CurrentBuild > 100007 and 4.375 or 3.5) * ( 1 + stat.versatility_atk_mod / 100 ) )
|
|
end
|
|
end,
|
|
},
|
|
|
|
|
|
impending_victory = {
|
|
id = 202168,
|
|
cast = 0,
|
|
cooldown = 25,
|
|
gcd = "spell",
|
|
|
|
spend = function() return buff.victorious.up and 0 or 10 end,
|
|
spendType = "rage",
|
|
|
|
talent = "impending_victory",
|
|
startsCombat = true,
|
|
|
|
handler = function ()
|
|
removeBuff( "victorious" )
|
|
gain( health.max * 0.3, "health" )
|
|
if conduit.indelible_victory.enabled then applyBuff( "indelible_victory" ) end
|
|
end,
|
|
},
|
|
|
|
|
|
intervene = {
|
|
id = 3411,
|
|
cast = 0,
|
|
cooldown = function ()
|
|
if pvptalent.safeguard.enabled then return 40 end
|
|
return 30
|
|
end,
|
|
charges = function () if pvptalent.safeguard.enabled then return 2 end end,
|
|
recharge = function () if pvptalent.safeguard.enabled then return 40 end end,
|
|
gcd = "off",
|
|
icd = 1.5,
|
|
|
|
talent = "intervene",
|
|
startsCombat = false,
|
|
|
|
handler = function ()
|
|
if legendary.reprisal.enabled then
|
|
applyBuff( "shield_block", 4 )
|
|
applyBuff( "revenge" )
|
|
gain( 20, "rage" )
|
|
end
|
|
|
|
if pvptalent.safeguard.enabled then
|
|
applyBuff( "safeguard" )
|
|
end
|
|
end,
|
|
},
|
|
|
|
|
|
intimidating_shout = {
|
|
id = function() return talent.menace.enabled and 316593 or 5246 end,
|
|
cast = 0,
|
|
cooldown = 90,
|
|
gcd = "spell",
|
|
|
|
talent = "intimidating_shout",
|
|
startsCombat = true,
|
|
texture = 132154,
|
|
|
|
toggle = "interrupts",
|
|
|
|
handler = function ()
|
|
applyDebuff( "target", "intimidating_shout" )
|
|
active_dot.intimidating_shout = max( active_dot.intimidating_shout, active_enemies )
|
|
end,
|
|
|
|
copy = { 316593, 5246 },
|
|
},
|
|
|
|
|
|
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 = function()
|
|
return settings.last_stand_offensively and "cooldowns" or "defensives"
|
|
end,
|
|
|
|
usable = function()
|
|
if settings.last_stand_offensively and ( talent.unnerving_focus.enabled or conduit.unnerving_focus.enabled or set_bonus.tier30_2pc > 0 ) then return true end
|
|
|
|
local dmg_required = ( ( settings.last_stand_amount or 10 ) * 0.01 ) * health.max * ( solo and 0.5 or 1 )
|
|
local hp_required = ( ( settings.last_stand_health or 10 ) * 0.01 )
|
|
local hp = health.percent or 10
|
|
|
|
if settings.last_stand_condition then
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if health.percent > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", health.percent, hp_required ) end
|
|
return true
|
|
end
|
|
|
|
if incoming_damage_5s >= dmg_required or hp <= hp_required then return true end
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if hp > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", hp, hp_required ) end
|
|
return false
|
|
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
|
|
|
|
if set_bonus.tier30_4pc > 0 then
|
|
state:QueueAuraExpiration( "last_stand_earthen_tenacity", TriggerEarthenTenacity, buff.last_stand.expires )
|
|
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 = "defensives",
|
|
|
|
usable = function()
|
|
local dmg_required = ( settings.rallying_cry_amount * 0.01 ) * health.max * ( solo and 0.5 or 1 )
|
|
local hp_required = ( settings.rallying_cry_health * 0.01 )
|
|
|
|
if settings.rallying_cry_condition then
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if health.percent > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", health.percent, hp_required ) end
|
|
return true
|
|
end
|
|
|
|
if incoming_damage_5s >= dmg_required or ( health.percent or 50 ) <= hp_required then return true end
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if health.percent > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", health.percent, hp_required ) end
|
|
return false
|
|
end,
|
|
|
|
handler = function ()
|
|
applyBuff( "rallying_cry" )
|
|
gain( 0.10 * 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,
|
|
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,
|
|
|
|
readyTime = function()
|
|
if buff.revenge.up then return 0 end
|
|
local threshold = action.revenge.cost + ( settings.reserve_rage or 40 )
|
|
if rage.current >= threshold or ( buff.shield_block.remains > 3 and buff.ignore_pain.remains > 3 ) or not tanking then return 0 end
|
|
return rage[ "time_to_" .. threshold ]
|
|
end,
|
|
|
|
handler = function ()
|
|
if 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 = true,
|
|
toggle = "cooldowns",
|
|
|
|
handler = function ()
|
|
removeDebuff( "target", "all_absorbs" )
|
|
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 then return "shield_block" end
|
|
end,
|
|
|
|
handler = function ()
|
|
applyBuff( "shield_block" )
|
|
end,
|
|
},
|
|
|
|
|
|
shield_charge = {
|
|
id = 385952,
|
|
cast = 0,
|
|
cooldown = 45,
|
|
gcd = "spell",
|
|
|
|
spend = -20,
|
|
spendType = "rage",
|
|
|
|
talent = "shield_charge",
|
|
startsCombat = true,
|
|
|
|
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 buff.violent_outburst.up then
|
|
applyBuff( "ignore_pain" )
|
|
removeBuff( "violent_outburst" )
|
|
end
|
|
|
|
if talent.brace_for_impact.enabled then applyBuff( "brace_for_impact" ) end
|
|
|
|
if talent.heavy_repercussions.enabled and buff.shield_block.up then
|
|
buff.shield_block.expires = buff.shield_block.expires + 1
|
|
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 set_bonus.tier30_2pc > 0 then
|
|
reduceCooldown( "last_stand", buff.last_stand.up and 4 or 2 )
|
|
end
|
|
|
|
if buff.fervid.up then
|
|
removeDebuff( "target", "deep_wounds" )
|
|
removeDebuff( "target", "rend" )
|
|
removeDebuff( "target", "thunderous_roar" )
|
|
if set_bonus.tier31_4pc > 0 then applyBuff( "fervid_opposition" ) end
|
|
end
|
|
end,
|
|
},
|
|
|
|
|
|
shield_wall = {
|
|
id = 871,
|
|
cast = 0,
|
|
charges = function () return 1 + ( talent.defenders_aegis.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 ) - ( talent.defenders_aegis.enabled and 30 or 0 ) end,
|
|
recharge = function() return 210 - ( conduit.stalwart_guardian.enabled and 20 or 0 ) - ( talent.defenders_aegis.enabled and 30 or 0 ) end,
|
|
gcd = "off",
|
|
|
|
talent = "shield_wall",
|
|
startsCombat = false,
|
|
texture = 132362,
|
|
|
|
toggle = "defensives",
|
|
|
|
usable = function()
|
|
local dmg_required = ( ( settings.shield_wall_amount or 10 ) * 0.01 ) * health.max * ( solo and 0.5 or 1 )
|
|
local hp_required = ( ( settings.shield_wall_health or 10 ) * 0.01 )
|
|
|
|
if settings.shield_wall_condition then
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if health.percent > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", health.percent, hp_required ) end
|
|
return true
|
|
end
|
|
|
|
if incoming_damage_5s >= dmg_required or ( health.percent or 50 ) <= hp_required then return true end
|
|
if incoming_damage_5s < dmg_required then return false, format( "incoming_damage_5s[%.2f] < dmg_required[%.2f] setting", incoming_damage_5s, dmg_required ) end
|
|
if health.percent > hp_required then return false, format( "health.percent[%.2f] > hp_required[%.2f] setting", health.percent, hp_required ) end
|
|
return false
|
|
end,
|
|
|
|
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,
|
|
|
|
toggle = "defensives",
|
|
|
|
handler = function ()
|
|
applyBuff( "spell_block" )
|
|
end,
|
|
},
|
|
|
|
|
|
storm_bolt = {
|
|
id = 107570,
|
|
cast = 0,
|
|
cooldown = 30,
|
|
gcd = "spell",
|
|
|
|
talent = "storm_bolt",
|
|
startsCombat = true,
|
|
|
|
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 )
|
|
removeBuff( "show_of_force" )
|
|
|
|
if ( talent.thunderlord.enabled or legendary.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 talent.uproar.enabled and 60 or 90 end,
|
|
gcd = "spell",
|
|
|
|
spend = -10,
|
|
spendType = "rage",
|
|
|
|
talent = "thunderous_roar",
|
|
startsCombat = true,
|
|
|
|
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 = 8,
|
|
gcd = "spell",
|
|
|
|
talent = "titanic_throw",
|
|
startsCombat = true,
|
|
|
|
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,
|
|
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 = true,
|
|
|
|
handler = function ()
|
|
removeDebuff( "target", "all_absorbs" )
|
|
end,
|
|
},
|
|
} )
|
|
|
|
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( "stance_weaving", false, {
|
|
name = "Allow Stance Changes",
|
|
desc = function()
|
|
return "If checked, custom priorities can be written to recommend changing between stances. For example, Battle Stance could be recommended when "
|
|
.. "using offensive cooldowns, then Defensive Stance can be recommended when tanking resumes.\n\n"
|
|
.. "If left unchecked, the addon will not recommend changing your stance as long as you are already in a stance. This choice prevents the addon "
|
|
.. "from endlessly recommending that you change your stance when you do not want to change it."
|
|
end,
|
|
type = "toggle",
|
|
width = "full"
|
|
} )
|
|
|
|
spec:RegisterSetting( "reserve_rage", 35, { -- Ignore Pain cost is 35, Shield Block is 30.
|
|
name = "|T135726:0|t Reserve Rage for Mitigation",
|
|
desc = "If set above 0, the addon will not recommend |T132353:0|t Revenge or |T135358:0|t Execute unless you'll be still have this much Rage afterward.\n\n"
|
|
.. "When set to |cFFFFD10035|r or higher, this feature ensures that you can always use |T1377132:0|t Ignore Pain and |T132110:0|t Shield Block when following recommendations for damage and threat.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 100,
|
|
step = 1,
|
|
width = "full",
|
|
} )
|
|
|
|
spec:RegisterSetting( "shield_wall_amount", 50, {
|
|
name = "|T132362:0|t Shield Wall Damage Required",
|
|
desc = "If set above 0, the addon will not recommend |T132362:0|t Shield Wall unless you have taken this much damage in the past 5 seconds, as a percentage of your maximum health.\n\n"
|
|
.. "If set to |cFFFFD10050%|r and your maximum health is 50,000, then the addon will only recommend Shield Wall when you've taken 25,000 damage in the past 5 seconds.\n\n"
|
|
.. "This value is reduced by 50% when playing solo.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 200,
|
|
step = 1,
|
|
width = "full",
|
|
} )
|
|
|
|
spec:RegisterSetting( "shield_wall_health", 50, {
|
|
name = "|T132362:0|t Shield Wall Health Percentage",
|
|
desc = "If set below 100, the addon will not recommend |T132362:0|t Shield Wall unless your current health has fallen below this percentage.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 100,
|
|
step = 1,
|
|
width = "full",
|
|
} )
|
|
|
|
spec:RegisterSetting( "shield_wall_condition", false, {
|
|
name = "Require |T132362:0|t Shield Wall Damage and Health",
|
|
desc = "If checked, |T132362:0|t Shield Wall will not be recommended unless both the Damage Required |cFFFFD100and|r Health Percentage requirements are met.\n\n"
|
|
.. "Otherwise, Shield Wall can be recommended when |cFFFFD100either|r requirement is met.",
|
|
type = "toggle",
|
|
width = "full"
|
|
} )
|
|
|
|
spec:RegisterSetting( "rallying_cry_amount", 50, {
|
|
name = "|T132351:0|t Rallying Cry Damage Required",
|
|
desc = "If set above 0, the addon will not recommend |T132351:0|t Rallying Cry unless you have taken this much damage in the past 5 seconds, as a percentage of your maximum health.\n\n"
|
|
.. "If set to |cFFFFD10050%|r and your maximum health is 50,000, then the addon will only recommend Rallying Cry when you've taken 25,000 damage in the past 5 seconds.\n\n"
|
|
.. "This value is reduced by 50% when playing solo.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 200,
|
|
step = 1,
|
|
width = "full",
|
|
} )
|
|
|
|
spec:RegisterSetting( "rallying_cry_health", 50, {
|
|
name = "|T132351:0|t Rallying Cry Health Percentage",
|
|
desc = "If set below 100, the addon will not recommend |T132351:0|t Rallying Cry unless your current health has fallen below this percentage.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 100,
|
|
step = 1,
|
|
width = "full",
|
|
} )
|
|
|
|
spec:RegisterSetting( "rallying_cry_condition", false, {
|
|
name = "Require |T132351:0|t Rallying Cry Damage and Health",
|
|
desc = "If checked, |T132351:0|t Rallying Cry will not be recommended unless both the Damage Required |cFFFFD100and|r Health Percentage requirements are met.\n\n"
|
|
.. "Otherwise, Rallying Cry can be recommended when |cFFFFD100either|r requirement is met.",
|
|
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"
|
|
.. "Requires " .. ( state.set_bonus.tier30_2pc > 0 and "|cFF00FF00" or "|cFFFF0000" ) .. "2-piece Tier 30|r or "
|
|
.. "|W|T571316:0|t " .. ( ( state.talent.unnerving_focus.enabled or state.conduit.unnerving_focus.enabled ) and "|cFF00FF00" or "|cFFFF0000" ) .. " Unnerving Focus|r|w"
|
|
end,
|
|
type = "toggle",
|
|
width = "full"
|
|
} )
|
|
|
|
spec:RegisterSetting( "last_stand_amount", 50, {
|
|
name = "|T135871:0|t Last Stand Damage Required",
|
|
desc = "If set above 0, the addon will not recommend |T135871:0|t Last Stand unless you have taken this much damage in the past 5 seconds, as a percentage of your maximum health.\n\n"
|
|
.. "If set to |cFFFFD10050%|r and your maximum health is 50,000, then the addon will only recommend Last Stand when you've taken 25,000 damage in the past 5 seconds.\n\n"
|
|
.. "This value is reduced by 50% when playing solo.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 200,
|
|
step = 1,
|
|
width = "full",
|
|
disabled = function() return state.settings.last_stand_offensively end,
|
|
} )
|
|
|
|
spec:RegisterSetting( "last_stand_health", 50, {
|
|
name = "|T135871:0|t Last Stand Health Percentage",
|
|
desc = "If set below 100, the addon will not recommend |T135871:0|t Last Stand unless your current health has fallen below this percentage.",
|
|
type = "range",
|
|
min = 0,
|
|
max = 100,
|
|
step = 1,
|
|
width = "full",
|
|
disabled = function() return state.settings.last_stand_offensively end,
|
|
} )
|
|
|
|
spec:RegisterSetting( "last_stand_condition", false, {
|
|
name = "Require |T135871:0|t Last Stand Damage and Health",
|
|
desc = "If checked, |T135871:0|t Last Stand will not be recommended unless both the Damage Required |cFFFFD100and|r Health Percentage requirements are met.\n\n"
|
|
.. "Otherwise, Last Stand can be recommended when |cFFFFD100either|r requirement is met.",
|
|
type = "toggle",
|
|
width = "full",
|
|
disabled = function() return state.settings.last_stand_offensively end,
|
|
} )
|
|
|
|
|
|
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", 20231105, [[Hekili:fV1EVTTTw8plbxa3ySghj74K0ERdWUf7pwXwVf1By)NLPLOT1IEDPOsBkm8N975qQhK0KY29bgWwBI4HhEE878Gp6c)f)XI5reoDX7h7nEIVV30r(VYZZ3FXC(Zf0fZliHps2a)qgjf(ZpWY50qECE2(L)fHXIZzinpNKtIqEvMxXcb62Y5fLV(6R3eZ3wTAuyE61LXPvjeCQHmYAo(7HxVy(QQ4e(VMTyLDbbyzbnCX7VBcW04OiQKsAz4I5iLx57FL30xVF5(LFGWd3UFPV3OXJ2)U9VtmS30RgFVy4)Sa5)(L889lbwrtIG)oHKUFzvjOH7xgd60p)F)f956jMBd9)fjjz)Y04SCgmnbd1i3tUu)Ceqljkkg1wcmJF5Z0WkE9AugNTjHEfNW2q5WNwVF5hLcq5(Lt9(P9lVSKhJluCky(5uGzREgiIwszprBOEnkd)oSeBis)rEb(3dveOBUAIu(hNf5wSV5QX3kO63vjawawoyCM362El62QxxWi7RWIjnSamuinn2R3UfvsWwKP(lRYrT4dvPP0K6XMxqrf(J01js41iawXYxhNaGjI4lLJkyuaiTIW)PzxhrxtZkJFIguYjzH0xgVE2QQ1Rhj)1rr5FkB)7Snt4p5jW02MxXTtrvjniMttFjI5Nrsa3ei6bfvF5lWexL)z7tJ8eb8POGCbNKqZ4J4XGWugWZzPWVAFwWp(ycTSmd(F15289aYkWcb(xWy)VArsGjJ(eLbOcECkcQ3Ig2qo6BqyeilXjKvjOFUEvH1Qu4wccfocCXWjpZtLK(gRq6Xuzi62cyTEn1XASILQFuAJeAYFkJ6YxBgEHY)gaIWYAq(ykGyss8xQr6LuohcIk)34pc846T0hJtI3V8baw1MHYMQ)jyfekN0ihNMM)eAMcYx93WSgrZWFlAGakjfwDOecGsYZJcwxbwF1Vszq45JGyPPVSqsgframveamss8MT8YG)UkAtQXqRJzuXIOXjavxYzKKGq0kPUYKnb5Rd4S4Wh1m2f54p1gzuRovfQ0eVbI5PbfK4mPDbtknAlLKW3oQiK)WSXEdUKbUQrqixCym)nZ8NoimppbTlJQTRLqIuaYsIEE3oDIVX7aILymj5dQ9eW3slqzkyvvYNiShBCfM8BC)8ZK8jkKhrtZzimcCsY4FDzyvEEko0t5XqgKty9RTO217PFJlSedMqk5IuCrGJRH(QSmOsaoJ15HvLUe1joe1VDop27eCZDyc5c(uCoUgbG6VQIvYvwwaV90ZqEKckdw1srsYgZqBOAbnJcbay0kgg7s2M2h60TKC22KFeYU)D9j7hFbpGF3Fc8ZP0nC3orK)dZUd83YQRukAiy0iSqB4JZUBGKIjth6APsHClLGSinX1Jb53cFSzWhMDZaiNouAndSV8ykBIFW4IWxI1qYxVoyty0mFZQg)g4SGAhCrdeIIEjL5)akD0bkuQCyakgCPLmNVcSAh8zm4zi(96i)KsoLzX0GgYD7UWGUlSV872zy(8qZ3dEMMSpcE3NXsulFl27WpKkTS61iiuVajdsbTHYu)0H5fvSWwtkA08b0vgu5Bf4GmA(a21rweLLxvgWYjmlDcGGZ2sJRrJzKrPrqGcF8tKNOkcvzEwCyakAwBvqnPrjpVOqetbDmRKwVTbVQ0vjOccAbanAJGDVs9oXbYEXK4TYrTcpeA6SfqldiaFDntRHiRycubekR1wiRklq(BbjXL86UMZPVSeBjHpZhzNU0v7Ecctifgci2DZHSBdKHcyg2eCtt0Wk05OfCcxNOCS2kK)wjVtdGs03geghupPwdkqVjFnqjxAl(Ysu3nfHdh4wxFZS7QtKk8D0Sao4(Gu1pRI9COAolDzD9eM2Bpx0PPmWGDzKj3pqtLGgEusJltbikscd6(vGnCGgRzJQR2UDgxK3m72MYnNL2cg3(mHhv1Mu3uZdyZmnygcd(pqlHYJXzqqxNHQJF1GtDTX2WhhSo2rdk6BNTJJu52b7cyRWJijiIsGmdD(BTpFGR(a2DkY(L9er7VBxF9cm4cxo3H2wzfhvD7i3J(hZYTJBan10lvFlvFhibzU7nsiKNaZEqujVpzAY0tGnqJ6t)(jtyJy1E9uszjjKzj42kaYAil22vVUenjaSiFRyNzhd8CwyNi6tqZb45kohYsH9klpGrVPJVFXCyFMymD5I5)bE(jqJW5SMt46fqwIxSFjJ()QGTJdThvMJh0cPINNsehadudfSbLqZp)wCgmK)RH2QYZG1rm8lCv25fYZG054nUlGUl9)8WJXFmbIblf5uoGl7FNfTe2QaPkHFMA6D2ffJUsnKkh7J6a10bZRBb206j)6)Om7BuTT6xApIWZZZCJDju)Gineq9bDP8tDH(0pMYdqI6dBt7)vHIJm9gXzyITYVeB9dvRfZf)eE3cqaj8xVxCNf1SzX)zX8qwm4ZIjlMBwoD)Y3md8A7xoaeQJeSPsKA4tZPpVyUAwQfCinIt54sX(MoODX9l3TZYi3GJmuS(UtlkvL7KSWvdKDYQsEtuuN4uuDLm1T4iLgy7F3kOX4KfvSIo7X0Tj9gNYjtSf2hqBGN6I0BtOwuI6cxswnPtsQ)oketpIqGoIB9u8eFfMpHZ0P76wbA3MnsrUa6U7emxtQL0UVCJMb0zdU2Sn8fZRlT2giAtf0Ls3Xj2Jxh3HRS2gSB4ZrG5g9gRbJS0FC36u3Julc18766RB8ZL9hH)Gixf6S6R)hHyFrFqVHUTq32NS1brUVbIy0CPqghRI97Af11meUuj)6IF8Vx8H(1ZZyrQfRHYjD66YKPN1YGIooLF06cUgdvXNMDYBnXL70boYbIcVvu(9o5KM8wB3TkmV6Roky2Phg8vfd47PgdRSbb1OyooIOZyBTCyK0tEyAYxLalUqo2zFrTAMzbTGLWR)mOk01ku1stt(WMplV8wJCvAPZmVmxB51AOT9YDnisR0LSTGJu0YWwI3)GHL87Wff)Y(p(ADeUiIZ1ndFqtpIssnXmnkt3veBO9VsJQ2Rm2GkDiQ(DiBsQwvyJlv2K2XQ02ElZMuPbB0V2zts1WpA3dTjLURkQ3bPcGvC71IjBw2QHeLlV2zsQ6KQDvHQRo0Cjz1jXN2xsCs0ZDDrPpX6UP67kPvtK78AUDX)XNc)Tp1jgt11TqR1oO1lD5eLn17y2P9A63nHQjqu7sB13bI1DEFQ2lD1579Qn27mHuQyXER91js9CtXQK58cGDjHtpE0YXKWVsB5pEDZ)Utr3ofHWb)7TDrd(3J0BRx37uBn38Q6f9jivoLTh22Pz)nB1DqksEB5s8R3DPGiBxMVSPH6BZh7PcZS7QBGoKH7Mb(MU))ZVJG(WKxAVtEWE8QAxsp7mAydf1j70odsh2CX9bjM2f9oZloEiL1dLsCCvpu3)PV5(bC5r(QFEbh1B0UddLhxGq00AOQ(jgyEaeE9SDg3fyu3JGznkbB9nAEw7XiykdATEz86emP9iNJr7Jv4GMNBoaPXUpiTMd84Gxxqhq78onpdyM9hNGgc3XAFegmWCBJTVWHdomV2re2cT9TySJnD7U7thXsay9JHOo1O3blHGmbBp19LF4(GbDs(gkW0LDOC93BH8eYdKVpF8mYX10mITDZHgVUcTj3C2EIT)2Ebe22aSPLP7nxRg1O)cTB3jB3(f6Ei2gUcZiGAL7WxITYgvSmiVVJuUdZA)cqoyFS8(oBpLiahx5HIdu5jFlm2G6tQ4BX)Tuy8C7fdU4)p]] )
|