comparison Main.lua @ 117:bdf1ec712304

Remove calls to LibPetJournal-2.0's ClearFilters() and RestoreFilters(), since the lib handles this internally.
author James D. Callahan III <jcallahan@curse.com>
date Thu, 13 Sep 2012 15:16:49 -0500
parents 6daf570bc198
children 08bc44830424
comparison
equal deleted inserted replaced
116:6ac959799a88 117:bdf1ec712304
1240 1240
1241 1241
1242 function WDP:PET_JOURNAL_LIST_UPDATE(event_name) 1242 function WDP:PET_JOURNAL_LIST_UPDATE(event_name)
1243 local num_pets = LPJ:NumPets() 1243 local num_pets = LPJ:NumPets()
1244 1244
1245 LPJ:ClearFilters()
1246 for index, pet_id in LPJ:IteratePetIDs() do 1245 for index, pet_id in LPJ:IteratePetIDs() do
1247 local _, _, is_owned, _, level, _, _, name, icon, pet_type, npc_id, _, _, is_wild = _G.C_PetJournal.GetPetInfoByIndex(index) 1246 local _, _, is_owned, _, level, _, _, name, icon, pet_type, npc_id, _, _, is_wild = _G.C_PetJournal.GetPetInfoByIndex(index)
1248 1247
1249 if is_owned then 1248 if is_owned then
1250 local health, max_health, attack, speed, rarity = _G.C_PetJournal.GetPetStats(pet_id) 1249 local health, max_health, attack, speed, rarity = _G.C_PetJournal.GetPetStats(pet_id)
1259 data.max_health = max_health 1258 data.max_health = max_health
1260 data.attack = attack 1259 data.attack = attack
1261 data.speed = speed 1260 data.speed = speed
1262 end 1261 end
1263 end 1262 end
1264 LPJ:RestoreFilters()
1265 end 1263 end
1266 1264
1267 1265
1268 do 1266 do
1269 local GENDER_NAMES = { 1267 local GENDER_NAMES = {