Jump to content

Regarding Ability 1 or 2


MichMasteR

Recommended Posts

I've noticed that every time I inject a past gen pokemon with Ability 2, PkHeX changes their ability to the first slot.

If I check the file on legality checker or Pokegen it will show that the right ability is the 2nd one, I am not sure if abilities don't matter anymore or why it changes it to the 1st one.

I don't seem to have that problem with Gen 6 pokemon though, would appreciate some info about this

Link to comment
Share on other sites

When transferring the 'ability number' is set (no longer derived from the PID), in doing so it checks the valid abilities to find the ability number.

https://github.com/kwsch/PKHeX/blob/master/PKM/PKX.cs#L269

If ability 1 & 2 are the same, the 'find' will return the first instance (ability 1).

Oh, so that's why, thanks for clearing it out, appreciate it!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...