Macro to polymorph
#showtooltip Polymorph
/clearfocus [target=focus,dead]
/clearfocus [target=focus,noexists]
/focus [target=target,exists,harm,nomodifier:shift]
/focus [target=mouseover,exists,harm,nomodifier:shift]
/cast [target=focus] Polymorph
Description of /target and /focus:
As said above in WoW we can use /target and /focus. /target - is target on that we see (get in target frame). /focus - is a target in mind (we not see on it, but keep in mind). This macros use /focus to sheep/resheep.
How it work:
1. If mouse point on harm target, it target get our focus and sheep.
2. If mouse not point on harm target, but we have harm target in target frame, it target get our focus and sheep.
3. If macros activated with pressed Shift button then macros sheep target which already got our focus. In Shift activated macros case - no matter what we have harm target under mouse or in target frame, sheep spell direct to previously focused target. If no one target have our focus (have no focused target) then will be sheeped target in target frame.
Target under mouse has priority. It mean that if we have two targets: under mouse and in target frame - sheep direct to target under mouse. With pressed Shift button priority has previously focused target.
How to use it:
If just activate it macros it will set focus on our current target under mouse or in target frame (priority to mouse target) and sheep it. If activate macros with pressed Shift button then Polymorph cast will be direct to previously focused target.
For example: Before pull mobs raid/party leader select target for your sheep. Select it in target frame or set mouse on it, activate macros at right moment (when MT pull or other event) and proceed to your DD-duty. When you see that need resheep (indicator show finishing polymorph spell on mob or mob dispel prematurely) just press Shift button and activate macros. With it you not lose your DD-target, not waste time for targeting.