Description
I have rewritten a new version as LibPetJournal-2.0 with a changed API. It improves on several serious issues with this library.
LibPetJournal is a library that retrieves information from the new C_PetJournal API. The primary purpose of this library is to be able to retrieve pet information without interference from the Pet Journal filters.
Example
local LibPetJournal = LibStub("LibPetJournal-1.0") local function ScanPets(event, petjournal) for i,pet in pairs(petjournal.Pets) do if pet.name == "Feline Familiar" then print("A cat in a hat was found.") end end end LibPetJournal:RegisterCallback("PetsUpdated", ScanPets) ScanPets(nil, LibPetJournal)


