🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
The[Pet Battle System](https://wow.gamepedia.com/Pet_Battle_System "Pet Battle System")was introduced in[Patch 5.0.4](https://wow.gamepedia.com/Patch_5.0.4 "Patch 5.0.4"). See also[Pet Journal](https://wow.gamepedia.com/World_of_Warcraft_API#Pet_Journal)functions. [C\_PetBattles.AcceptPVPDuel](https://wow.gamepedia.com/API_C_PetBattles.AcceptPVPDuel "API C PetBattles.AcceptPVPDuel")() [C\_PetBattles.AcceptQueuedPVPMatch](https://wow.gamepedia.com/API_C_PetBattles.AcceptQueuedPVPMatch "API C PetBattles.AcceptQueuedPVPMatch")() [C\_PetBattles.CanAcceptQueuedPVPMatch](https://wow.gamepedia.com/API_C_PetBattles.CanAcceptQueuedPVPMatch "API C PetBattles.CanAcceptQueuedPVPMatch")() [C\_PetBattles.CanActivePetSwapOut](https://wow.gamepedia.com/API_C_PetBattles.CanActivePetSwapOut "API C PetBattles.CanActivePetSwapOut")() [C\_PetBattles.CanPetSwapIn](https://wow.gamepedia.com/API_C_PetBattles.CanPetSwapIn "API C PetBattles.CanPetSwapIn")(petIndex) [C\_PetBattles.CancelPVPDuel](https://wow.gamepedia.com/API_C_PetBattles.CancelPVPDuel "API C PetBattles.CancelPVPDuel")() [C\_PetBattles.ChangePet](https://wow.gamepedia.com/API_C_PetBattles.ChangePet "API C PetBattles.ChangePet")(petIndex) [C\_PetBattles.DeclineQueuedPVPMatch](https://wow.gamepedia.com/API_C_PetBattles.DeclineQueuedPVPMatch "API C PetBattles.DeclineQueuedPVPMatch")() [C\_PetBattles.ForfeitGame](https://wow.gamepedia.com/API_C_PetBattles.ForfeitGame "API C PetBattles.ForfeitGame")() [C\_PetBattles.GetAbilityEffectInfo](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityEffectInfo "API C PetBattles.GetAbilityEffectInfo")(abilityID, turnIndex, effectIndex, effectName) [C\_PetBattles.GetAbilityInfoByID](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityInfoByID "API C PetBattles.GetAbilityInfoByID")(abilityID) [C\_PetBattles.GetAbilityInfo](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityInfo "API C PetBattles.GetAbilityInfo")(petOwner, petIndex, abilityIndex) [C\_PetBattles.GetAbilityProcTurnIndex](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityProcTurnIndex "API C PetBattles.GetAbilityProcTurnIndex")(abilityID, procType) [C\_PetBattles.GetAbilityStateModification](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityStateModification "API C PetBattles.GetAbilityStateModification")(abilityID, stateID) [C\_PetBattles.GetAbilityState](https://wow.gamepedia.com/API_C_PetBattles.GetAbilityState "API C PetBattles.GetAbilityState")(petOwner, petIndex, actionIndex) [C\_PetBattles.GetActivePet](https://wow.gamepedia.com/API_C_PetBattles.GetActivePet "API C PetBattles.GetActivePet")(petOwner) [C\_PetBattles.GetAllEffectNames](https://wow.gamepedia.com/API_C_PetBattles.GetAllEffectNames "API C PetBattles.GetAllEffectNames")() [C\_PetBattles.GetAllStates](https://wow.gamepedia.com/API_C_PetBattles.GetAllStates "API C PetBattles.GetAllStates")() [C\_PetBattles.GetAttackModifier](https://wow.gamepedia.com/API_C_PetBattles.GetAttackModifier "API C PetBattles.GetAttackModifier")(petType, enemyPetType) [C\_PetBattles.GetAuraInfo](https://wow.gamepedia.com/API_C_PetBattles.GetAuraInfo "API C PetBattles.GetAuraInfo")(petOwner, petIndex, auraIndex) [C\_PetBattles.GetBattleState](https://wow.gamepedia.com/API_C_PetBattles.GetBattleState "API C PetBattles.GetBattleState")() [C\_PetBattles.GetBreedQuality](https://wow.gamepedia.com/API_C_PetBattles.GetBreedQuality "API C PetBattles.GetBreedQuality")(petOwner, petIndex) [C\_PetBattles.GetDisplayID](https://wow.gamepedia.com/API_C_PetBattles.GetDisplayID "API C PetBattles.GetDisplayID")(petOwner, petIndex) [C\_PetBattles.GetForfeitPenalty](https://wow.gamepedia.com/API_C_PetBattles.GetForfeitPenalty "API C PetBattles.GetForfeitPenalty")() [C\_PetBattles.GetHealth](https://wow.gamepedia.com/API_C_PetBattles.GetHealth "API C PetBattles.GetHealth")(petOwner, petIndex) [C\_PetBattles.GetIcon](https://wow.gamepedia.com/API_C_PetBattles.GetIcon "API C PetBattles.GetIcon")(petOwner, petIndex) [C\_PetBattles.GetLevel](https://wow.gamepedia.com/API_C_PetBattles.GetLevel "API C PetBattles.GetLevel")(petOwner, petIndex) [C\_PetBattles.GetMaxHealth](https://wow.gamepedia.com/API_C_PetBattles.GetMaxHealth "API C PetBattles.GetMaxHealth")(petOwner, petIndex) [C\_PetBattles.GetName](https://wow.gamepedia.com/API_C_PetBattles.GetName "API C PetBattles.GetName")(petOwner, petIndex) [C\_PetBattles.GetNumAuras](https://wow.gamepedia.com/API_C_PetBattles.GetNumAuras "API C PetBattles.GetNumAuras")(petOwner, petIndex) [C\_PetBattles.GetNumPets](https://wow.gamepedia.com/API_C_PetBattles.GetNumPets "API C PetBattles.GetNumPets")(petOwner) [C\_PetBattles.GetPVPMatchmakingInfo](https://wow.gamepedia.com/API_C_PetBattles.GetPVPMatchmakingInfo "API C PetBattles.GetPVPMatchmakingInfo")() [C\_PetBattles.GetPetSpeciesID](https://wow.gamepedia.com/API_C_PetBattles.GetPetSpeciesID "API C PetBattles.GetPetSpeciesID")(petOwner, petIndex) [C\_PetBattles.GetPetType](https://wow.gamepedia.com/API_C_PetBattles.GetPetType "API C PetBattles.GetPetType")(petOwner, petIndex) [C\_PetBattles.GetPlayerTrapAbility](https://wow.gamepedia.com/API_C_PetBattles.GetPlayerTrapAbility "API C PetBattles.GetPlayerTrapAbility")() [C\_PetBattles.GetPower](https://wow.gamepedia.com/API_C_PetBattles.GetPower "API C PetBattles.GetPower")(petOwner, petIndex) [C\_PetBattles.GetSelectedAction](https://wow.gamepedia.com/API_C_PetBattles.GetSelectedAction "API C PetBattles.GetSelectedAction")() [C\_PetBattles.GetSpeed](https://wow.gamepedia.com/API_C_PetBattles.GetSpeed "API C PetBattles.GetSpeed")(petOwner, petIndex) [C\_PetBattles.GetStateValue](https://wow.gamepedia.com/API_C_PetBattles.GetStateValue "API C PetBattles.GetStateValue")(petOwner, petIndex, stateID) [C\_PetBattles.GetTurnTimeInfo](https://wow.gamepedia.com/API_C_PetBattles.GetTurnTimeInfo "API C PetBattles.GetTurnTimeInfo")() [C\_PetBattles.GetXP](https://wow.gamepedia.com/API_C_PetBattles.GetXP "API C PetBattles.GetXP")(petOwner, petIndex) [C\_PetBattles.IsInBattle](https://wow.gamepedia.com/API_C_PetBattles.IsInBattle "API C PetBattles.IsInBattle")() [C\_PetBattles.IsPlayerNPC](https://wow.gamepedia.com/API_C_PetBattles.IsPlayerNPC "API C PetBattles.IsPlayerNPC")(petOwner) [C\_PetBattles.IsSkipAvailable](https://wow.gamepedia.com/API_C_PetBattles.IsSkipAvailable "API C PetBattles.IsSkipAvailable")() [C\_PetBattles.IsTrapAvailable](https://wow.gamepedia.com/API_C_PetBattles.IsTrapAvailable "API C PetBattles.IsTrapAvailable")() [C\_PetBattles.IsWaitingOnOpponent](https://wow.gamepedia.com/API_C_PetBattles.IsWaitingOnOpponent "API C PetBattles.IsWaitingOnOpponent")() [C\_PetBattles.IsWildBattle](https://wow.gamepedia.com/API_C_PetBattles.IsWildBattle "API C PetBattles.IsWildBattle")() [C\_PetBattles.SetPendingReportBattlePetTarget](https://wow.gamepedia.com/API_C_PetBattles.SetPendingReportBattlePetTarget "API C PetBattles.SetPendingReportBattlePetTarget")(petIndex) [C\_PetBattles.SetPendingReportTargetFromUnit](https://wow.gamepedia.com/API_C_PetBattles.SetPendingReportTargetFromUnit "API C PetBattles.SetPendingReportTargetFromUnit")(unit) [C\_PetBattles.ShouldShowPetSelect](https://wow.gamepedia.com/API_C_PetBattles.ShouldShowPetSelect "API C PetBattles.ShouldShowPetSelect")() HW[C\_PetBattles.SkipTurn](https://wow.gamepedia.com/API_C_PetBattles.SkipTurn "API C PetBattles.SkipTurn")() [C\_PetBattles.StartPVPDuel](https://wow.gamepedia.com/API_C_PetBattles.StartPVPDuel "API C PetBattles.StartPVPDuel")() [C\_PetBattles.StartPVPMatchmaking](https://wow.gamepedia.com/API_C_PetBattles.StartPVPMatchmaking "API C PetBattles.StartPVPMatchmaking")() [C\_PetBattles.StopPVPMatchmaking](https://wow.gamepedia.com/API_C_PetBattles.StopPVPMatchmaking "API C PetBattles.StopPVPMatchmaking")() HW[C\_PetBattles.UseAbility](https://wow.gamepedia.com/API_C_PetBattles.UseAbility "API C PetBattles.UseAbility")(actionIndex) HW[C\_PetBattles.UseTrap](https://wow.gamepedia.com/API_C_PetBattles.UseTrap "API C PetBattles.UseTrap")() [CanTrackBattlePets](https://wow.gamepedia.com/API_CanTrackBattlePets "API CanTrackBattlePets")() - Returns whether the player can track battle pets. [IsTrackingBattlePets](https://wow.gamepedia.com/API_IsTrackingBattlePets "API IsTrackingBattlePets")() - Returns whether the player is currently tracking battle pets. [UnitBattlePetLevel](https://wow.gamepedia.com/index.php?title=API_UnitBattlePetLevel&action=edit&redlink=1 "API UnitBattlePetLevel (page does not exist)")() [UnitBattlePetSpeciesID](https://wow.gamepedia.com/API_UnitBattlePetSpeciesID "API UnitBattlePetSpeciesID")() [UnitBattlePetType](https://wow.gamepedia.com/index.php?title=API_UnitBattlePetType&action=edit&redlink=1 "API UnitBattlePetType (page does not exist)")() [UnitIsBattlePetCompanion](https://wow.gamepedia.com/index.php?title=API_UnitIsBattlePetCompanion&action=edit&redlink=1 "API UnitIsBattlePetCompanion (page does not exist)")() [UnitIsBattlePet](https://wow.gamepedia.com/API_UnitIsBattlePet "API UnitIsBattlePet")() [UnitIsOtherPlayersBattlePet](https://wow.gamepedia.com/index.php?title=API_UnitIsOtherPlayersBattlePet&action=edit&redlink=1 "API UnitIsOtherPlayersBattlePet (page does not exist)")() [UnitIsWildBattlePet](https://wow.gamepedia.com/index.php?title=API_UnitIsWildBattlePet&action=edit&redlink=1 "API UnitIsWildBattlePet (page does not exist)")()