WoW:API GetPetHappiness

Revision as of 14:33, 5 April 2006 by WoWWiki>WoWGeek (type: 'happiness' should be 'loyalty' for loyaltyRate)

Returns the pet's happiness, damage percentage, and loyalty gain rate.

happiness, damagePercentage, loyaltyRate = GetPetHappiness();

Returns:
happiness (integer) - the numerical happiness value of the pet (1 = unhappy, 2 = content, 3 = happy)
damagePercentage (integer) - damage modifier, happiness affects this (unhappy = 75%, content = 100%, happy = 125%)
loyaltyRate (integer) - the rate at which your pet is currently gaining loyalty (< 0, losing loyalty, > 0, gaining loyalty)

Template:WoW API