Help
Regional FlagBUG: Battle Pet Species APISource
avatar
Grendizer
Target Source
#1 - 2012/10/05 07:26:00 PM
Each of the abilities returned in the "abilities" array in battle pet species API has the "id" set twice.

Example request:
/api/wow/battlePet/species/258

Response I get:

{"speciesId":258,"petTypeId":9,"creatureId":42078,"canBattle":true,"icon":"t_roboticon","description":"Powerful artillery of the terran army. The Thor is always the first one in and the last one out!","source":"Promotion: Starcraft 2: Wings of Liberty Collector's Edition","abilities":[{"id":640,"slot":1,"order":1,"requiredLevel":2,"id":640,"name":"Toxic Smoke","icon":"spell_shadow_plaguecloud","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false},{"id":777,"slot":0,"order":0,"requiredLevel":1,"id":777,"name":"Missile","icon":"ability_racial_rocketbarrage","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false},{"id":455,"slot":0,"order":3,"requiredLevel":10,"id":455,"name":"Batter","icon":"inv_mace_02","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false},{"id":636,"slot":2,"order":2,"requiredLevel":4,"id":636,"name":"Sticky Grenade","icon":"inv_misc_pyriumgrenade","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false},{"id":293,"slot":2,"order":5,"requiredLevel":20,"id":293,"name":"Launch Rocket","icon":"ability_mount_rocketmount","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false},{"id":634,"slot":1,"order":4,"requiredLevel":15,"id":634,"name":"Minefield","icon":"inv_misc_bomb_09","cooldown":0,"rounds":1,"petTypeId":9,"isPassive":false,"showHints":false}]}


As you can see id:640 for first ability is repeated twice, ans same for other abilities.

avatar
Blue Poster
Target Source
#2 - 2012/10/05 11:11:00 PM
Thanks for the example, the duplicate will be removed in the next update.