pokerogue
pokerogue copied to clipboard
Tinted pokeball false positive from abilities
More info here but this affects all Pokemon with only 1 ability and makes the caught icon tinted when they appear with their hidden abilities even if the user owns the hidden ability.
This is because in the dexattr the ability is stored as a binary bitmask where 1 is the first ability, 2 is the second ability, and 4 is the hidden ability.
A Pokemon with only 1 ability has their hidden ability at abilityIndex 1 instead of 2 so when the code checks 2^abilityIndex it's getting a value of 2 instead of 4 and this mismatch causes the caught icon to be tinted even when it shouldn't be.