Pet Control Macro
WoW Hunter Macro
This macro is a one-button pet macro that will cast Call Pet and Revive Pet if you do not have a pet or your pet is dead. If you have a focus target, it will set your focus to that target. If your focus is dead, it will clear your focus. Clicking the macro will make your pet attack your focus. Control-clicking will dismiss your pet. Hunter's Mark will be cast regardless of whether you have a pet or focus target.
/cast [nopet] Call Pet;[target=pet,dead]Revive Pet
/clearfocus [target=focus,dead]
/focus [target=focus,exists]player;target
/clearfocus [target=focus,noharm]
/petattack [target=focus,exists]
/petfollow [target=focus,noexists]
/cast Hunter's Mark