World of Warcraft Forever API · C_PetBattles.md, for your AI
C_PetBattles
5 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_PetBattles.GetBreedQuality
quality = C_PetBattles.GetBreedQuality(petOwner, slot)
Arguments
petOwner | BattlePetOwner | |
|---|---|---|
slot | number |
Returns
quality | BattlePetBreedQuality |
|---|
C_PetBattles.GetIcon
iconFileID = C_PetBattles.GetIcon(petOwner, slot)
May return nothing.
Arguments
petOwner | BattlePetOwner | |
|---|---|---|
slot | number |
Returns
iconFileID | fileID |
|---|
C_PetBattles.GetName
customName, speciesName = C_PetBattles.GetName(petOwner, slot)
May return nothing.
Arguments
petOwner | BattlePetOwner | |
|---|---|---|
slot | number |
Returns
customName | string | |
|---|---|---|
speciesName | string |
C_PetBattles.IsPlayerNPC
isPlayerNPC = C_PetBattles.IsPlayerNPC()
Returns
isPlayerNPC | bool |
|---|
C_PetBattles.IsWildBattle
isWildBattle = C_PetBattles.IsWildBattle()
Returns
isWildBattle | bool |
|---|