Originally Posted by
kakamonster
I could be doing something wrong but take a look at the code again, it wont use Intercept at all, i cheered to fast.
you have if c[2]>0 and GetTime()-c[1]<1.5 then charging=1 but only use Charging=0?
Yes that is on purpose...if charging gets to set to 1...that means we have charged within the last 1.5 seconds...if that is true, we do not want to even consider using Intercept...
Try it like this?
Code:
/run c={GetSpellCooldown("Charge")}; charging=0; if c[2]>0 and GetTime()-c[1]<1.5 then charging=1 end; if charging==0 then if GetSpellCooldown("Intercept")==0 and IsSpellInRange("Intercept", "target") and not IsSpellInRange("Slam", "target") and UnitPower("player")>=10 then if GetShapeshiftForm()==3 then CastSpellByName("Intercept") else CastShapeshiftForm(3) end elseif GetShapeshiftForm()~=1 then CastShapeshiftForm(1) end end
If that doesn't work, can you make a macro that has just this... It should do intercept...so standing in intercept range three consecutive pushes should do Berserker, Intercept, Battle. That will let us know if it's the Charge detection that's screwing it up or if it's the code that tries to Intercept.
Code:
/run if GetSpellCooldown("Intercept")==0 and IsSpellInRange("Intercept", "target") and not IsSpellInRange("Slam", "target") and UnitPower("player")>=10 then if GetShapeshiftForm()==3 then CastSpellByName("Intercept") else CastShapeshiftForm(3) end elseif GetShapeshiftForm()~=1 then CastShapeshiftForm(1) end