Contributor
Looking for auto-interupt macro on any friendly target's target.
Basically, I'm looking for a spammable macro that will look at everyone's target in your party (and eventually raid) and evaluate if they are casting/channeling an interruptable spell. This is including protected functions preferably. Easy rep if you're looking to rep farm and you know how to make macros.
I tried writing my own, but something is conflicting or doesn't like me. I was able to get a successful auto-interrupt macro on my own target and my focus's target by using the following...
Code:
/run i={UnitCastingInfo('target')} if i[9]==false and IsSpellInRange("Wind Shear","target") and GetSpellCooldown("Wind Shear")==0 and not UnitBuff("target","Shield of Lights") and not UnitBuff("target","Shield of Darkness") then CastSpellByName("Wind Shear") end
/run i={UnitChannelInfo('target')} if i[8]==false and IsSpellInRange("Wind Shear","target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear") end
/run i={UnitCastingInfo('focustarget')} if i[9]==false and IsSpellInRange("Wind Shear","focustarget") and GetSpellCooldown("Wind Shear")==0 and not UnitBuff("focustarget","Shield of Lights") and not UnitBuff("focustarget","Shield of Darkness") then CastSpellByName("Wind Shear","focustarget") end
/run i={UnitChannelInfo('focustarget')} if i[8]==false and IsSpellInRange("Wind Shear","focustarget") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","focustarget) end
But when I add on these, it's pretty hit and miss. I see wind shear going off once in a while, but recount doesn't report a successful interupt.
Code:
/run i={UnitCastingInfo('party1target')} if i[9]==false and IsSpellInRange("Wind Shear","party1target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party1target") end
/run i={UnitChannelInfo('party1target')} if i[8]==false and IsSpellInRange("Wind Shear","party1target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party1target") end
/run i={UnitCastingInfo('party2target')} if i[9]==false and IsSpellInRange("Wind Shear","party2target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party2target") end
/run i={UnitChannelInfo('party2target')} if i[8]==false and IsSpellInRange("Wind Shear","party2target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party2target") end
/run i={UnitCastingInfo('party3target')} if i[9]==false and IsSpellInRange("Wind Shear","party3target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party3target") end
/run i={UnitChannelInfo('party3target')} if i[8]==false and IsSpellInRange("Wind Shear","party3target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party3target") end
/run i={UnitCastingInfo('party4target')} if i[9]==false and IsSpellInRange("Wind Shear","party4target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party4target") end
/run i={UnitChannelInfo('party4target')} if i[8]==false and IsSpellInRange("Wind Shear","party4target") and GetSpellCooldown("Wind Shear")==0 then CastSpellByName("Wind Shear","party4target") end
Any help here?
e: I added ==1 after IsSpellInRange checks. Still acts funny thgouh.
Last edited by Ssateneth; 10-07-2010 at 02:42 AM.
These ads disappear when you log in.