Casts a pet action on a specific target
See also Pet functions, Action functions.
Signature:
CastPetAction(index [, "unit"])
Arguments:
index- Index of a pet action button (between 1 andNUM_PET_ACTION_SLOTS) (number)unit- A unit to be used as target for the action (string, unitID)
This function is protected and can only be called by the Blizzard user interface