Skip to content

Commit

Permalink
Merge branch 'thewarwithin' of https://github.com/Hekili/hekili into …
Browse files Browse the repository at this point in the history
…thewarwithin
  • Loading branch information
Hekili committed Sep 9, 2024
2 parents c7d46c4 + 49de32a commit c9acc09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TheWarWithin/DruidGuardian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ spec:RegisterAuras( {
-- Armor increased by $w4%.; Stamina increased by $1178s2%.; Immune to Polymorph effects.$?$w13<0[; Arcane damage taken reduced by $w14% and all other magic damage taken reduced by $w13%.][]
barkskin = {
id = 22812,
duration = function() return ( talent.improved_barkskin.enabled and 12 or 8 ) + talent.ursocs_endurance.rank end,
duration = function() return ( talent.improved_barkskin.enabled and 12 or 8 ) + ( talent.ursocs_endurance.enabled and 2 or 0 ) end,
type = "Magic",
max_stack = 1
},
Expand Down Expand Up @@ -488,7 +488,7 @@ spec:RegisterAuras( {
-- https://wowhead.com/beta/spell=192081
ironfur = {
id = 192081,
duration = function() return ( buff.guardian_of_elune.up and 9 or 7 ) + talent.ursocs_endurance.rank end,
duration = function() return 7 + ( buff.guardian_of_elune.up and 3 or 0 ) + ( talent.ursocs_endurance.enabled and 2 or 0 ) end,
max_stack = 5,
},
-- Agility increased by $w1% and armor granted by Ironfur increased by $w2%.
Expand Down Expand Up @@ -1489,6 +1489,8 @@ spec:RegisterAbilities( {
end,

usable = function ()
-- allow offensive ironfur with specific talents
if talent.thorns_of_iron.enabled and talent.reinforced_fur.enabled then return true end
if settings.ironfur_damage_threshold > 0 and incoming_damage_5s < health.max * settings.ironfur_damage_threshold * 0.01 * ( solo and 0.5 or 1 ) then return false, "player has not taken preferred damage in 5s" end
return true
end,
Expand Down

0 comments on commit c9acc09

Please sign in to comment.