Originally Posted by
pinhe1ro
Originally Posted by
ToonsThatPwn
in the new holy macro it does not target focus's target and cast judgement
ToonsThatPwn is right, tested in icc10 and the macro don´t cast JoL in the target of tank...
Grr...it has always judged fine for me...the line that does it isn't too complex:
Code:
/run if UnitExists("focustarget") and UnitInRange("focustarget")==1 and GetSpellCooldown("Judgement of Light") == 0 then RunMacroText("/cast [@focustarget] Judgement of Light") end;
It will only judge if no one needs healing BTW...also did you make sure you actually had a Seal active...because you can't judge without one and the macro doesn't put up a Seal.
The only thing I can think of that would be breaking it for you guys is that maybe I can't pass in "focustarget" to the functions...and so it does't work. So I've changed the macro to have that line just check for focus like this:
Code:
/run if UnitExists("focus") and UnitInRange("focus")==1 and GetSpellCooldown("Judgement of Light") == 0 then RunMacroText("/cast [@focustarget] Judgement of Light") end;
We'll assume if you have a focus and it is in range, then it's target must be in range too...I think if the tank has no focus it will just say there "There is nothing to attack." but not activate GCD.
Edit: If someone could test this, it would be great. Just set a focus...and then do this:
Code:
/run local e=UnitExists("focustarget"); local r=UnitInRange("focustarget"); print(e..", "..r);
Try that line when the focus has a target and when it doesn't....preferably also try it when the focus has a target that is not in range...if anything returns unexpected value, let me know. If no one can test, I will the next time I'm on a wow computer.