Hi there, hey guys im looking for some help with my macro, i have an issue with the interrupts, lets take a look about what im talking about.
Code:
/run if GetSpellCooldown("Kick")==0 and IsSpellInRange("Kick","target") and (UnitCastingInfo("target") or UnitChannelInfo("target")) then CastSpellByName("Kick") end
ok, we all know that code, it works like a charm, but... its not very effective in pvp, we could get moar advantage yet, because, when we use that code, kicks just "kicks" when te caster starts to cast, and it gets interruptped (ofc), what i want to do, is somthing that interrupts when the cast its almost done, like, lets say 90%, soo, this is what i have been trying to do.
Code:
t="target";
uc=UnitCastingInfo;
uch=UnitChannelInfo;
if GetSpellCooldown("Kick")==0 and IsSpellInRange("Kick","target") and (((uc("t")/uc("t"))<= 0.9) or ((uch("t")/uch("t"))<= 0.9)) then CastSpellByName("Kick")
When caster is at 90% of his casting bar, cast kick.
i guess my macro doesn't work because the "info" (from "getcastinginfo") we get from the target is, if he's casting or not prolly a yes/no answer, we prolly cant get any cuantitative number from it. im trying to figure it out, and i will get it eventually, but, i would appreciate if some1 could givme a hand.