Instructs the pet to attack. The pet will attack the player's current target if no unit is specified.
See also Pet functions.
Signature:
PetAttack(["unit"])
or
PetAttack(["name"])
Arguments:
unit
- A unit to attack (string
, unitID)name
- The name of a unit to attack (string
)
This function is protected and can only be called by the Blizzard user interface