If the PID ends with: 0, 2, 4, 6, 8 the Pokémon will have Ability Nr. 0
If the PID ends with: 1, 3, 5, 7, 9 the Pokémon will have Abiltiy Nr. 1
If the PID ends with: A, C, E, G the Pokémon will have Ability Nr. 0
If the PID ends with: B, D, F, H the Pokémon will have Ability Nr. 1