Get an Epic Experience with Premium

Thnan's Mod - Battle Pets

Battle Pets Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 73 Monthly Downloads
  • Supports: 5.4.1
  • 3,892 Total Downloads
  • Updated 11/14/2013
  • Created 03/18/2013
  • 9 Favorites
  • Project Site
  • Comments
  • Release Type: Inactive
  • License: Thnan's Addon License
  • Newest File: v2.3.3 release

About Thnan's Mod - Battle Pets

Thnan's Mod - Battle Pets

Thnan's Mod used to be one addon with several unrelated features. This addon is only the battle pets portion.
Now that the addon has been split, the original project will no longer be updated.

This addon adds a tooltip line to wild battle pets, telling you the highest rarity version you own of that pet type, and optionally, its level. This line appears when mousing over a pet in the world, on the minimap and in battle with it.
The module also adds rarity and level information to the release pet confirmation dialog.
The options to include the pet level in the tooltips cause the level of the highest quality pet to be displayed, not the highest level pet overall. For example, if you have a level 15 rare squirrel, and a level 20 uncommon squirrel, the tooltip will say level 15.


Bug reports and feature suggestions can be made using the ticket system here. Closed or completed tickets are filtered out by default, they can be viewed by changing the filter settings.


If you are interested in translating my mod, please send me a PM here.

Thnan's Mod - Battle Pets
version changes:


- Fixed issue where owning a Pierre would cause tooltips to fail.
- Fixed issue sometimes causing lua errors.
- Improved accuracy of breed identification for most pets added in patch 5.4
- Breeds will now be calculated for species added in patch 5.4.1
- Pet items added in patch 5.4.1 will now have tooltip lines.


- Updated to support WoW version 5.4.0
- Pet items added in patch 5.4 will now have tooltip lines.


- Fixed issue where inventory addons sometimes cause this addon to sometimes throw lua errors.
- Fixed issue sometimes causing lua error for no apparent reason.


- Improved accuracy of breed identification.
- Added option to show a caged pet's breed in its tooltip.
- The release pet confirmation dialog information once again plays nice with other addons.


- Fixed issue causing lua errors when loading non-item hyperlinks.
- Fixed issue causing zone labels to sometimes extend past the right edge of the battle tooltip.
- Fixed issue causing collected pet info lines to sometimes extend past the right edge of the battle tooltip.
- Fixed issue causing some pets to not have their highest level zone identified.
- Pet breeds should now be immediately identified when a battle starts, instead of after a small delay.
- Added highest level zones to pet journal tooltips.


- Added highest level zone information to world and battle tooltips.
- Fixed issue causing lua error when trying to show battle breed information after reloading during battle.


- Added options to control display of breed information.
- Added breedID display for pets already owned.
- Added breedID to release pet confirmation dialogs.
- Added breedID to pet journal pet card.
- Added breedID to battle tooltips.
- Updated to support WoW version 5.3
- Pet items added in patch 5.3 will now have tooltip lines.


- Converted to separate standalone addon.
- Added option to replace the default line in tooltips.


- Updated to support WoW version 5.2.0


- Changed pet list generation to only call GetPetStats if petID is not nil.
- Pet items added in patch 5.2 will now have tooltip lines.


- Hooked trigger for world tooltips to GameTooltip:OnTooltipSetUnit instead of catching UPDATE_MOUSEOVER_UNIT.
- Added tooltip lines to pet items.
- Added tooltip lines to caged pets.
- Cleaned up the appearance of battle tooltips.


- Fixed issue where coloring confirmation dialog failed with other addons.
- Fixed issue where minimap tooltips would fail to detect a pet name if it was greyed out.
- Added option to show all owned pets in world and battle tooltips.


- Added options to show the level of the highest rarity pet in world, battle and minimap tooltips.
- Added option to add rarity and level information to the release pet confirmation dialog.
- Fixed issue sometimes causing lua error when showing battle tooltips.


- Actually, really fixed issue causing framerate loss when mousing over wild pets. (Really!)


- Fixed issue causing framerate loss when mousing over wild pets. (again)


 - Moved to dependent addon.
 - Changed name of plugin to Battle Pets.
 - Changed wording of tooltip lines to better integrate with Blizzard text added in 5.1
 - Fixed issue causing excessive memory usage.
 - Added the tooltip line to pet tooltips while in battle.
 - Included the collected, not collected, and favorites filter options in pet list expansion.
 - "Expand Pet List" option removed. This functionality is now baseline.
 - Filter settings now restored after searching the pet list.

Addon Packs Containing This...


  • #14

    I had to didable this addon .  when i hover over pets(bought ones ) on my Auction toon or in my bank it does not display  any tooltips.

  • #13

    Every time I click an achievement in chat window, so check what's about, I get an error message:

    Date: 2014-07-31 18:27:01
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\ThnanMod_BattlePets\Tooltips.lua line 600:
       attempt to perform arithmetic on local 'idx' (a nil value)
       [C]: ?
       [C]: ?
       ...AddOns\Auc-Advanced\Libs\LibExtraTip\LibExtraTip.lua:387: SetHyperlink()
       [C]: ?
       [C]: orgfunc()
       (tail call): ?
       (tail call): ?
       [C]: ?
       [C]: ?
       [C]: ?
       [C]: ChatFrame_OnHyperlinkShow()
       [string "*:OnHyperlinkClick"]:1:
          [string "*:OnHyperlinkClick"]:1
       [C]: ?

  • #9

    Some curious behavior. The tooltip does not work at all on either the minimap or on mouse-over in the wild.  However, it does display the highest level zone info in the pet info box in the pet journal. This is one of my favorite features. Unfortunately, when this addon is active, the autosearch feature does not work in pet journal, and some other issues that have caused me to disable it until we get a resolution... hopefully soon!

    Till then, I am using battlepetcount for a tooltip addon.  Tho I prefer this addon, it is a workaround.

  • #12

    All features seem to be working correctly again after 5.4.1 update on 11/14/13.  Thanks, Thnan.

    Last edited by Gizmojo on 11/20/2013 2:01:28 PM
  • #8

    Regrettably, I cannot get this to work at all with 4.5.1

    Even when I disable all other addons.

    Last edited by Gizmojo on 10/30/2013 12:40:49 AM
  • #7

    Another error:


    Date: 2013-10-26 23:49:15
    ID: 1
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\ThnansMod_BattlePets\PetZones.lua line 17:
       Usage: GetPetInfoByID(ID)
       [C]: ?
       [C]: GetPetInfoBySpeciesID()
       [C]: PetJournal_UpdatePetCard()

  • #11

    Basically, what's happening is whenever the Pet Journal changes what pet it shows in the detail window, my mod uses the speciesID to look up the zone data and add it to the tooltip. I never anticipated the possibility of the Pet Journal updating to show an empty detail window, but looking through Blizzard's code suggests that they do, so I've added a check to see if the speciesID exists before trying to use it. This error shouldn't happen in version 2.3.3 of the mod.

    5 out of 4 people have problems with fractions.

  • #5

    I think they just changed something.  I am now getting this when I mouseover any pets.

    Date: 2013-10-25 20:36:55
    ID: 3
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\ThnansMod_BattlePets\PetBreeds.lua line 53:
       attempt to index local 'base' (a nil value)
       [C]: ?
       ThnansMod_BattlePets\PetBreeds.lua:53: breedsForPet()
       ThnansMod_BattlePets\PetList.lua:146: tooltipLineForPet()
       [C]: ?

  • #6

    I wrapped this with a check to see if base is non-nil:

            if base then
                if wild then
                    testHealth = floor(((base[1] + breed[1])*LRh + 100)/wildHealthMod + 0.5)
                    testHealth = floor((base[1] + breed[1])*LRh + 100.5);
                local testPower = floor((base[2] + breed[2])*LR + 0.5);
                local testSpeed = floor((base[3] + breed[3])*LRs + 0.5);
                if testHealth == health and testPower == power and testSpeed == speed then
                    table[#table + 1] = possibles[i];

  • #10

    By any chance, did this start right after you added a Pierre to your collection?

    I think this is related to this ticket. I should have a fix out soon.

    5 out of 4 people have problems with fractions.

  • #4

    I really like this addon.  However, I have been having to reload my ui before it will work.  Any suggestions?

  • #1

    whenever i open my guild bank i get this error: i use bagnon

    Date: 2013-06-07 01:46:54
    ID: 2
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\ThnansMod_BattlePets\Tooltips.lua line 230:
       Usage: GetPetInfoByID(ID)
       [C]: ?
       [C]: GetPetInfoBySpeciesID()
       [C]: BattlePetToolTip_Show()
       ...nterface\AddOns\Bagnon_GuildBank\components\item.lua:91: UpdateTooltip()

      MoncaiCompare, v5.2.0
      Swatter, v4.3.0 (<%codename%>)
      1337AchievementHelper, v1.4.1
      AchSnd, v2013-22-15.2
      AckisRecipeList, v2.4.8
      ACP, v3.4.3
      Altoholic, v5.3.001
      Atlas, v1.24.00
      AtlasArena, v1.4.00
      AtlasBattlegrounds, v1.24.00
      AtlasBurningCrusade, v1.24.00
      AtlasCataclysm, v1.24.00
      AtlasClassicWoW, v1.24.00
      AtlasDungeonLocs, v1.24.00
      AtlasOutdoorRaids, v1.24.00
      AtlasScenarios, v1.24.00
      AtlasTransportation, v1.24.00
      AtlasWrathoftheLichKing, v1.24.00
      AtlasQuest, v4.8.4
      AucAdvanced, v5.17.5413 (NeedyNoddy)
      AucFilterBasic, v5.17.5413 (NeedyNoddy)
      AucFilterOutlier, v5.17.5413.5347(5.17/embedded)
      AucMatchUndercut, v5.17.5413.5364(5.17/embedded)
      AucScanData, v5.17.5413 (NeedyNoddy)
      AucStatHistogram, v5.17.5413 (NeedyNoddy)
      AucStatiLevel, v5.17.5413 (NeedyNoddy)
      AucStatPurchased, v5.17.5413 (NeedyNoddy)
      AucStatSales, v5.17.5413.5376(5.17/embedded)
      AucStatSimple, v5.17.5413 (NeedyNoddy)
      AucStatStdDev, v5.17.5413 (NeedyNoddy)
      AucStatWOWEcon, v5.17.5413.5323(5.17/embedded)
      AucUtilAHWindowControl, v5.17.5413.5347(5.17/embedded)
      AucUtilAppraiser, v5.17.5413.5393(5.17/embedded)
      AucUtilAskPrice, v5.17.5413.5347(5.17/embedded)
      AucUtilAutoMagic, v5.17.5413.5392(5.17/embedded)
      AucUtilCompactUI, v5.17.5413.5400(5.17/embedded)
      AucUtilEasyBuyout, v5.17.5413.5347(5.17/embedded)
      AucUtilFixAH, v5.17.5413 (NeedyNoddy)
      AucUtilItemSuggest, v5.17.5413.5365(5.17/embedded)
      AucUtilPriceLevel, v5.17.5413.5365(5.17/embedded)
      AucUtilScanButton, v5.17.5413.5403(5.17/embedded)
      AucUtilScanFinish, v5.17.5413.5347(5.17/embedded)
      AucUtilScanProgress, v5.17.5413.4979(5.17/embedded)
      AucUtilScanStart, v5.17.5413.5347(5.17/embedded)
      AucUtilSearchUI, v5.17.5413.5373(5.17/embedded)
      AucUtilSimpleAuction, v5.17.5413.5388(5.17/embedded)
      AucUtilVendMarkup, v5.17.5413.4828(5.17/embedded)
      AutoDismount, v
      AutoQuest2, v5.2.0
      Babylonian, v5.1.DEV.332(/embedded)
      BagBrother, v
      Bagnon, v5.3
      BagnonConfig, v
      BagnonGuildBank, v
      Bartender4, v4.5.9
      BeanCounter, v5.17.5413 (NeedyNoddy)
      ButtonFacade, v5.0.389
      camelstatues, v1.01
      ChefsHat, v50200-1
      ClamStacker, v1.4.3
      Configator, v5.1.DEV.344(/embedded)
      CookingHelper, v1.82
      Cosplay, v50300-1
      CraftBar, v5.6
      DataStore, v5.3.001
      DataStoreAchievements, v5.3.001
      DataStoreAgenda, v5.3.001
      DataStoreAuctions, v5.3.001
      DataStoreCharacters, v5.3.001
      DataStoreContainers, v5.3.001
      DataStoreCrafts, v5.3.001
      DataStoreCurrencies, v5.3.001
      DataStoreInventory, v5.3.001
      DataStoreMails, v5.3.001
      DataStorePets, v5.3.001
      DataStoreQuests, v5.3.001
      DataStoreReputations, v5.3.001
      DataStoreSpells, v5.3.001
      DataStoreStats, v5.3.001
      DataStoreTalents, v5.3.001
      DBMCore, v
      DBMWorldEvents, v
      DebugLib, v5.1.DEV.337(/embedded)
      Decursive, v2.7.2.9
      Enchantrix, v5.17.5413 (NeedyNoddy)
      EnchantrixBarker, v5.17.5413 (NeedyNoddy)
      FishingBuddy, v1.2n
      Gatherer, v4.3.0
      GatherNotify, v1.46
      GearingGuide, v1.2.1
      GemHelper, v5.2.1
      GlyphReporter, v1.3.7
      GoingPriceUS, v5.3.1370131200
      GoingPriceUSLightbringer, v5.3.1369361294
      GoingPriceUSMedivh, v5.3.1369363332
      GoingPriceUSSilverHand, v5.3.1369361412
      GoingPriceUSStormrage, v5.3.1369362912
      GoingPriceUSTanaris, v5.3.1369357992
      Grail, v047
      GrailAchievements, v005
      GrailReputations, v004
      GTFO, v4.23.3
      GuildTithe, vrelease_v2.5.7
      HaloMini, v1.6.1
      HandyNotes, v1.2.0
      HandyNotesLorewalkers, v1
      HandyNotesLostAndFound, v1
      HealBot, v5.3.0.1
      HealBotTips, v5.3.0.0
      Informant, v5.17.5413 (NeedyNoddy)
      InspectEquip, v2.0.5
      ItemAnalysis, v
      JebusMail, vv5.2
      LibExtraTip, v5.12.DEV.350(/embedded)
      LibQuestItem10, v1.0-24
      Loremaster, vv5.3.0.0
      LostTreasures, v3.06
      LUI, v3.8.0
      MacroToolkit, vv5.3.0.0
      MacroToolkitMacroBox, vv5.3.0.0
      Masque, v5.1.389
      MasqueDarion, v4.1.2
      Mendeleev, v3.0
      Omen, v3.1.7
      PetLeash, v2.2.10.1
      PetSelector, vv5.3.0.0
      ProfessionsVault, v6.4.4
      QuestItemBar, v0.8.3.2
      QuestMods, v
      Recount, v
      RepReward, vv2.05
      SilverDragon, vv3.0.6
      SimpleSelfRebuff, v2.1.0
      SimpleSelfRebuffCastBinding, v2.1.0
      SimpleSelfRebuffDataObject, v2.1.0
      SimpleSelfRebuffReminder, v2.1.0
      Skillet, v
      SlideBar, v4.3.0 (<%codename%>)
      SorhaQuestLog, v1.2
      Stubby, v5.17.5413 (NeedyNoddy)
      TheUndermineJournalGE, v2.3.20130520
      ThnansModBattlePets, vv2.3 release
      TipHelper, v5.12.DEV.351(/embedded)
      TomTom, vv50200-1.0.2-6d9489b
      TradeSkillInfo, vv2.2.10
      Wholly, v032
      BlizRuntimeLib_enUS v5.3.0.50300 <us>

  • #2

    It looks like something in Bagnon is calling BattlePetToolTip_Show() with no parameters whenever it opens the guild bank. My mod assumes that there are always parameters, so it causes an error when there aren't any. v2.3.1 checks for parameters first, so the error shouldn't happen anymore, but I'm pretty sure there's something wrong in Bagnon as well. I'll let them know.

    On an unrelated note, thanks for letting me know about Bagnon.. I just might have to start using it myself.

    5 out of 4 people have problems with fractions.

  • 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 »

Gamepedia Free-shirt Giveaway