Skip to content

Commit

Permalink
Fire: Allow precombat hardcast Pyroblast.
Browse files Browse the repository at this point in the history
- Handle Searing Touch / Scorch below 30% health.
  • Loading branch information
Hekili committed Jan 26, 2020
1 parent a13f381 commit ffa828a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/MageFire.lua
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ if UnitClassBase( 'player' ) == 'MAGE' then
end,

usable = function ()
if action.pyroblast.cast > 0 and not boss then return false, "hardcasts only allowed on bosses" end
if combat > 0 and action.pyroblast.cast > 0 and not boss then return false, "hardcasts only allowed on bosses" end
return true
end,

Expand Down Expand Up @@ -892,7 +892,7 @@ if UnitClassBase( 'player' ) == 'MAGE' then
handler = function ()
if talent.frenetic_speed.enabled then applyBuff( "frenetic_speed" ) end

if buff.combustion.up or stat.crit >= 100 then
if buff.combustion.up or stat.crit >= 100 or ( talent.searing_touch.enabled and target.health_pct < 30 ) then
if buff.heating_up.up then removeBuff( "heating_up" ); applyBuff( "hot_streak" )
else applyBuff( "heating_up" ) end
end
Expand Down Expand Up @@ -964,6 +964,7 @@ if UnitClassBase( 'player' ) == 'MAGE' then

aoe = 3,
gcdSync = false,
canCastWhileCasting = true,

nameplates = false,
nameplateRange = 8,
Expand Down

0 comments on commit ffa828a

Please sign in to comment.