Get an Epic Experience with Premium

PetBattle Teams

Companions Login to Add Favorites
  • World of Warcraft
  • 6,389 Monthly Downloads
  • Supports: 6.1.0
  • 961,791 Total Downloads
  • Updated 05/14/2015
  • Created 07/27/2012
  • 1,083 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: Public Domain
  • Newest File: 3.2.9

About PetBattle Teams



  • Create an unlimited teams of pets and quickly switch between them in the pet journal.
  • Reliable pet switching even when spammed with requests to change teams.
  • The skills in the tooltip are the saved skill selections
  • The frames location is now saved.
  • Pets are saved to your current team as you make changes, no more hitting save. (This behavior can be disabled by unchecking "Automatically save teams" in the options).
  • Teams can be named, deleted or locked by right clicking the team.
  • Additional options are available from Game Menu -> Interface -> AddOns -> PetBattleTeams

Main Frame:

  • Teams are displayed to the right of your pet journal in the pet battles team frame
  • The star denotes your active team.
  • Swap pets between teams by dragging and dropping! Add pets from the pet journal directly to teams, or swap within your own teams.
  • copy pets by holding shift while dragging the pet to copy it to another team.
  • reorder teams by control - dragging a pet.
  • Displays your pets levels, quality and health, icon at a glance
  • Each pet in a team can be moused over for additional information.
  • The active team is now displayed at the top of the frame.
  • Teams with gold borders are locked by the user.
  • Locked teams cannot be modified.

Slash Commands:

  • use "/pbt reset ui" to reset the UI and re-attach the frame to the pet journal
  • use "/pbt reset teams" to reset your teams
  • use "/pbt lock teams" to lock all existing teams
  • use "/pbt unlock teams" to unlock all existing teams
  • use "/pbt attach" to attach PetBattle Teams to the Pet Journal
  • use "/pbt detach" to detach PetBattle Teams to the Pet Journal
  • use "/pbt lock frame" to lock the PetBattle Teams frame
  • use "/pbt unlock frame" to unlock the PetBattle Teams frame


  • Click the pet battle icon in the upper right to access the lock and attachment options
  • Press the + button to create additional teams
  • Right click a team to delete|rename|lock it. There is a confirmation before deleting to prevent accidents.
  • Left click a pet in a pet battle teams frame to make that team the active team.

3.2.9 Just a bandaid to make it work in 6.1
3.2.8 invalid pets are now ignored always.

3.2.7 fixed issues preventing the addon from working
3.2.7  67     Please Load the Journal Using the Default Method

3.2.6 fixed wonky scroll bar
3.2.6 updated LibPetBreedInfo-1.0

3.2.5 re-added detach/attach

r37 intersect() now checks if both objects are tables.

3.2.4 disabled having the pbt window be detached due to various issues that were happening with it.
3.2.3 fixed several errors

r36 added a nil check before updating a team in TeamManager.UpdateCurrentTeam()

.2.1 added numerous checks when calling C_PetJournal.GetPetInfoByPetID in teamManager.lua
3.2.1 invalid/nil petID's should no longer throw errors.
3.2.1 51 - 3.2.0 lua errors

r35 FixTeams()  code clean up,  now runs in linear time
r34 FixTeams() is now restricted to invalid pets only

r33 added experimental fix for 5.3 petID's. Not guaranteed to restore all teams perfectly but it should be a good start.
r33 put    /run PetBattleTeams.modules.TeamManager:FixTeams()  into your chat bar and hit enter.

r32 each pet in a team is tagged with its speciesID
r32 if a petID is no longer valid then from the options menu you can select to reconstruct teams. For each invalid petID, PBT will find the highest level pet of the same species and add it to that team.
r32 removed Import Teams functionality as its no long relevant
r32 added Reconstruct teams option in the same location as Import teams
r32 note: this change is backwards compatible with previous versions if you need to downgrade
r32 note: this change will not restore previously lost pets

r31 left clicking the menu button now hides PBT's main frame and attaches the menu button to the pet journal near the close button in the upper right.
left clicking the menu button while its attached to the petjournal frame will reshow PBT's main frame.

r30 fixed some leaked global variables from 46 - global taints.

3.1.3 updated libbreedinfo to latest version

3.1.2 fixed team switching
3.1.2 updated libpetbreedinfo
3.1.2 updated toc

3.1.1 no changes from r29

r29 import teams no longer throws errors during the import

r28 Added deleting pets from teams.
r28 added not clearing pet battle slots when invalid or empty pets are on a team

r27 ticket 39, fixed the spelling of team.

r26 added option to enable mouse scrolling to change the selected team when used on the selected team frame

3.1.0 corrected variable name in createTeam
3.1.0 removed debug print statment

r25 updated to latest libpetbreedinfo
r25 reset the scroll bar when the roster frame is shown or hidden (post 328)
r25 moved controller code from view to controller. opps. scrolling while moving pets will now properly enable and disable pet unitframes (ticket 37)
r25 roster min size is now 2 entries or else onvertical scroll doesnt fire for the scroll frame, since the bobber doesnt move. future: implement onmousewheel back up  (post 328)

r24 added ability to toggle visiblity for selected team, roster and control buttons
r24 added config entries for component visiblity

r23 added menu addressing ticket 28
r23 added config option to hide breed info

r22 fixed gui initializing during combat at login

r21 Added breed info to tooltip pet names

3.0.5 addressed ticket 31, hope i nailed it as i couldn't reproduce it.

r20 mainframe no longer displays when attached after a reload during combat. pbt will restore itself after combat.

r19 Nuked release

r18 removed dependency on blizzard pet journal again, added more checks to make sure it loads properly
r18 fixed bandage again

r17 Moved printed text from TeamManager to calling functions
r17 added /pbt toggle to toggle the attach/detach state
r17 fixed printed text for lock and unlocking teams

3.0.4 fixed being unable to scroll to the last team when a user had 14 teams (and presumably other quantities as well)
3.0.4 changed pet bandage button to use itemID instead of enUS text
3.0.4 fixed some ability names being blank in the pet tooltip
3.0.4 fixed teams not switching

3.0.3 Changed vertical scrolling to only move one at a time
3.0.3 fixed /pbt reset teams

3.0.2 Added additional checks to make sure a petframe is set before trying to show a tooltip
3.0.2 Added enabled flag to freshly created teams
3.0.2 Added IsTeamLocked check to IsTeamEnabled (shouldnt have to ask twice to find out if its enabled)

3.0.1 team names are now colored yellow when locked to match the unit frame border
3.0.1 scrolling now correctly keeps disabled pets disabled
3.0.1 trying to swap from a locked team now automatically copies instead
3.0.1 locked teams no longer disable during a team move

3.0.0 added local _ and preferredIndex = STATICPOPUP_NUMDIALOGS, to reduce taint issues
3.0.0 removed tutorial.lua from the toc

r16 - moved team names up 2 px to prevent names being cut off by unit frames
r16 - newly created teams are now inserted directly after the team they were copied from
r16 - moved add team button over 3px to line up with unit frames
r16 - Increased hieght of team frame by 2px to remove overlap with unit frames

r15 - updated toc number
r15 - fixed teams remaining locked after a pet battle
r15 - teams no longer lock during a pet battle
r15 - pet bandage button now works
r15 - added import dialog for optionally importing pets from 2.4
r15 - added help text for /pbt

r14 - when a new team is created, that team is now selected
r14 - mainFrame no longer displays resizer and is no longer moveable after reloading (when attached)
r14 - fixed empty|invalid pets not showing up as locked when the team is locked

r13  - fixed invalid pets not reseting border color
r13  - added auto dismiss
r13  - fixed resizer showing while attached
r13  - fixed team names reseting when changing pet load out
r13  - fixed TeamManager:IsWorking to return the correct values when idle
r13  - fixed Swapping pets when both teams have an empty pet
r13  - fixed empty_pets not showing disabled when they are

r12 - fixed swaping to empty pet between teams
r12 - can no longer pick up empty or invalid pets
r12 - added description to a number of options
r12 - added helper text to pet tooltip
r12 - fixed bad petID issues with TeamManager:GetPetInfo
r12 - slash commands
r12 - implement hiding helper text

2.4.14 found a left over debug statement.

r11 added resetUI functionality. Added frame locking functionality, and frame state saving. creating new teams with automatically saving teams disabled now creates empty ??? teams

2.4.13 added conversion for petIDs

Going to beta, added new config placeholder options, fixed code for 5.1

Added support for 5.1
Add Importer for 2.4.11 teams
Added team names to main scroll frame
Made Moving teams more user friendly, hit escape to cancel move, or wait 15seconds
Rewrote scroll frame for the Nth time
Fixed reported bugs
Fixed lib dependencies issue
Added Todo.txt , see whats left to be done and suggest more.

r3 fixed frame issue with first initialization, added Old pbt settings to toc file they are not lost and allows me to write a migration function

r2 Alpha - Complete rewrite of PBT. Expect features to be missing, or broken.


First Previous Page 39 of 61 Next Last
  • #362
    Quote from Peyana »

    Third, I am having the same problem as Gendou. Any idea when the fix might be available? I'm lost without it:)

    Same. I have had to disable this addon until there is a fix :(

  • #361
    Quote from Peyana»

    FI am having the same problem as Gendou. Any idea when the fix might be available? I'm lost without it:)

    I'm having the same issue as Peyana and Gendou.

    I can change teams, but I can't change the pets within the teams. I also can't access/change the spells of any pets in a team other than the team that was active before the patch. I have to log out and disable PetBattle Teams and change the pets in Blizzard's interface if I want to switch spells for any team - and thereby making that the new 'default' team.



    Last edited by Setsoru727 on 3/5/2013 6:54:26 PM
  • #357

    5.2 seems to have disrupted basic functionality.  All of my teams are there, but I can't switch to them.

  • #359

    It's also lost all abilities to sort properly. In my installation, Favorites (I have just four) are defaulted to the top, then the rest are alphabetically. I haven't been able to change that.

    Edit: I should mention that I absolutely love what this mod does for Pet Battles, and depend far too heavily upon it. ;)


    Last edited by Hairfish on 3/5/2013 5:33:05 PM
  • #358

    It also does't like to allow me to change the pets on the active team with this add on enabled.

  • #355

    When I take a flying taxi (like wyvern from Org to Thunder Bluff), open the Teams, and select a different Team, my taxi briefly reverses itself, then continues flying to the destination.  Any idea why?  (There's also a clanking sound effect.)  I've also noticed that manipulating teams while taxiing can be flaky, though I don't have a reproducible example for you at the moment.  If I'm flying my own mount, the reversal doesn't happen, nor the sound effect.

  • #356

    I was able to reproduce the issue pretty easily however the only thing i figured i could disable without wholy disabling team switching did not prevent the switch backs. 

    Oddly when taxiing you can't pick up pets in the defualt UI, so my guess is thats how blizzard got around the issue but they didnt account for addon's calling the function which causes the issue. (the problem function being seting the pet loadout).

    Last edited by Nullberri on 3/3/2013 12:17:46 AM
  • #351
    I want

    I want to put teams in group like cooking recipes are puting into groups. I want to move teams between groups.

    I want to create main groups called Spirit Teams, Daily Teams, Lvl 20+, Lvl 15-19, etc... When I click on Spirit Teams then Battle Teams "open" and show the contents in that main group. When I click again, it hide all teams in that main group, like cooking, when I click on Pandaren Cuisine, it hide and show the contents.

  • #353

    This would have been a great sugestion when I was first working on 3.0.0, however the amount of new code id have to write to incorperate that idea now is bigger than im willing to do at this time.

  • #350

    Thank you much for writing and maintaining this mod. Best tool available for managing a stable of pets!

    I have a request - It would be nice if the mod remembered the last pet team that character used. I play on a number of alts, and they generally have different teams for their level.. It's annoying to go pet hunting with a lowbie alt, get into combat with a level 10 pet I want to capture, and realize I still have my lvl25 team from my main active.


  • #354

    Let me start by saying this addon is great and the coding is quite organised and well formatted, thank you for your efforts Nullberri.

    But although I understand that Nulberri would like to keep PetBattle Teams in line with blizzard,

    I myself wanted to do several things different slightly differently:

    One of which was to assign a team "per" toon; So I have added a couple of lines to Nullberris code (posted below) 

    Please remember: I did this for myself and am simply sharing the change. There a few key short falls in this: the main one to keep in mind is Nullberri (as is his right as the Addon developer) has written the addon to be 'global' meaning even with my additions, if you modify a team on one toon it changes on ALL toons.

    So in the lua file \World of Warcraft\Interface\AddOns\PetBattleTeams\modules\TeamManager.lua

    Locate the "SetSelected" function,eg line that says: function TeamManager:SetSelected(teamIndex)
    In that function under the line = teamIndex

    Paste the following: (the Zanoroy is not to premote myself, simply so I can find the changes I have made, feel free to leave those lines out)

    -- Zanoroy --
    if == nil then = {}
    end[UnitName("player")] = teamIndex  
    -- END Zanoroy --

    Locate the "OnInitialize" function,eg line that says: function TeamManager:OnInitialize()
    In that function Change the following LINES:

    if #self.teams ~= 0 and self:GetSelected() == 0 then

    to (Again the Zanoroy can be left off)

    -- Zanoroy --
    if #self.teams ~= 0 and and[UnitName("player")] then
    elseif #self.teams ~= 0 and self:GetSelected() == 0 then
    -- End Zanoroy --

    Done: once you logon to your toons and select a team, it will be remembered... At least until the next update and you have to re-add the lines above.. ;)

  • #352

    I see how that would be annoying but considering how the game treats pets and the team as a global resource, i feel that at this time it is better to follow along with blizzard and make the current team share globally as well.


  • #349

    really awesome addon, simple and useful, blizzard should make this function build in game

    a small request, could you make this awesome addon support Aurora


  • #345

    Just updated to the newest version. I logged in and was asked if I wanted to migrate the teams I had already to the new version. Said yes and got the following error. No pet teams were migrated over.

    Date: 2013-01-29 19:17:16
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ...erface\AddOns\PetBattleTeams\modules\TeamManager.lua line 322:
    attempt to index field 'enabled' (a boolean value)
    ...erface\AddOns\PetBattleTeams\modules\TeamManager.lua:322: GetTeamEnabled()
    ...rface\AddOns\PetBattleTeams\classes\PetUnitFrame.lua:202: UpdateWidget()
    ...rface\AddOns\PetBattleTeams\classes\PetUnitFrame.lua:187: SetPet()
    ...nterface\AddOns\PetBattleTeams\classes\TeamFrame.lua:182: SetTeam()

    edit: snipped the non relevent bits from the debug dump.

    Last edited by Nullberri on 1/31/2013 1:41:25 PM
  • #346

    Reloading should fix the issue as it will overwrite the data which is causing the issue (its reset the enabled bits every reload/relog). I've fixed the bug for the next beta. If your pets did not finish importing you can update to the latest beta  r29 or higher (will be available later) and then reimport your pet teams from the addons->interface->petbattle teams menu..

    Last edited by Nullberri on 1/31/2013 7:54:13 PM
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Wildstar Skinned PC Giveaway