Skip to content

Pet System

How hunter/warlock pets and guardians are stored and powered. Sources: src/game/Objects/Pet.cpp, src/game/Objects/Pet.h.


Definition Tables (world DB)

Table Purpose
creature_template Pets are creatures: type = CREATURE_TYPE_BEAST, pet_family selects the pet family, spell_list_id / pet_spell_list_id define autocast pools.
pet_levelstats Base HP/mana/armor/damage per creature entry and level.
pet_spell_data Autocast spell pool per pet (referenced by pet_spell_list_id).
petcreateinfo_spell Spells a pet of a given entry knows from birth (patch-filtered).
pet_name_generation Random name pools for wild/tameable pets.

Character-Side State

Table (characters DB) Contents
character_pet The stable: current pet + stabled pets, stats, rename state.
pet_aura Auras persisting across logout.
pet_spell Learned spells.
pet_spell_cooldown Cooldowns.

Behaviour