Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
I added that extra bit and this changes
if (gBaseStats[species].abilities[1] ||gBaseStats[species].abilityHidden )
{
if ((Random() % 10) == 0)
value = 2;
else
value = personality & 1;
SetBoxMonData(boxMon, MON_DATA_ABILITY_NUM, &value);
}
In GetAbilityBySpecies
if (abilityNum == 2)...