Instructs the pet to attack. The pet will attack the player's current target if no unit is specified.

See also Pet functions.


PetAttack(["unit"]) or PetAttack(["name"])


  • 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