Class Pet [-] [+]
Non-Player controlled companions that fight alongside their owners.
Includes hunter pets, warlock demons, death knight ghouls, and other summoned creatures. Pets can be temporary or permanent and have various AI behaviors and spell abilities.
Inherits all methods from: Object, WorldObject, Unit, [Guardian]
Methods
AddSpell |
Adds a spell to the Pet's spellbook. |
CastWhenWillAvailable |
Queues a spell to be cast when the Pet becomes available. |
CleanupActionBar |
Cleans up the Pet's action bar, removing invalid spells. |
ClearCastWhenWillAvailable |
Clears any queued spell that was set to cast when available. |
CreateBaseAtCreature |
Creates the Pet's base stats and properties from an existing Creature. |
GenerateActionBarData |
Generates action bar data for the Pet. |
GetAuraUpdateMaskForRaid |
Returns the aura update mask for raid members. |
GetCurrentFoodBenefitLevel |
Returns the food benefit level for an item of the specified level. |
GetDuration |
Returns the Pet's remaining duration in milliseconds. |
GetFreeTalentPoints |
Returns the number of unspent talent points the Pet has. |
GetHappinessState |
Returns the Pet's current happiness state. |
GetMaxTalentPointsForLevel |
Returns the maximum number of talent points available at the specified level. |
GetOwner | |
GetPetAutoSpellOnPos |
Returns the auto-spell at the specified position. |
GetPetAutoSpellSize |
Returns the number of auto-spells the Pet has. |
GetPetType |
Returns the Pet's type. |
GetUsedTalentCount |
Returns the number of talents the Pet has used. |
GivePetLevel |
Sets the Pet's level directly. |
GivePetXP |
Gives experience points to the Pet. |
HasTempSpell |
Returns |
HaveInDiet |
Returns |
InitLevelupSpellsForLevel |
Initializes level-up spells for the Pet's current level. |
InitPetCreateSpells |
Initializes the Pet's creation spells. |
InitTalentForLevel |
Initializes talents for the Pet's current level. |
IsBeingLoaded |
Returns |
IsControlled |
Returns |
IsPermanentPetFor |
Returns |
IsRemoved |
Returns |
IsTemporarySummoned |
Returns |
LearnPetPassives |
Makes the Pet learn all passive spells it should know. |
LearnSpell |
Makes the Pet learn a spell. |
LearnSpellHighRank |
Makes the Pet learn the highest available rank of a spell. |
Remove |
Removes the Pet from the world. |
RemoveSpell |
Removes a spell from the Pet's spellbook. |
ResetAuraUpdateMaskForRaid |
Resets the aura update mask for raid members. |
ResetTalents |
Resets all of the Pet's talents. |
SavePetToDB |
Saves the Pet to the database. |
SetAuraUpdateMaskForRaid |
Sets an aura slot in the raid update mask. |
SetDuration |
Sets the Pet's duration in milliseconds. |
SetFreeTalentPoints |
Sets the number of unspent talent points for the Pet. |
SetPetType |
Sets the Pet's type. |
SetRemoved |
Sets whether the Pet is marked as removed. |
SetUsedTalentCount |
Sets the number of talents the Pet has used. |
SynchronizeLevelWithOwner |
Synchronizes the Pet's level with its owner's level. |
ToggleAutocast |
Toggles autocast on or off for the specified spell. |
UnlearnSpell |
Makes the Pet unlearn a spell. |