Also, you can delete “(Rank X)” from your macro. Then the highest possible rank of the spell will be used. So you don’t need to change your macro after learning new spells.
Can any1 make this macro work in classic? Its from vanilla.
Description: Click this macro once to /petattack, once to /petfollow if already attacking, and once to /petattack your new target IF already currently /petattacking something else. This macro performs a very basic one button pet combat-management function, but as you can see it’s quite long ><
Instructions: Replace YouNameHere (which is featured twice in the script, as you can see) with your ingame name. Do not delete the quotation marks. Then copy with ctrl-c and paste the macro while ingame with ctrl-v, and like magic it’s now yours to enjoy:
/script if UnitExists(“target”) then if a==0 then PetAttack(target) a=1 else if UnitExists(“pettarget”) and UnitIsUnit(“target”, “pettarget”) then PetFollow(“YourNameHere”) a=0 else PetAttack(target) end;end; else PetFollow(“YourNameHere”) a=0 end;