Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teambuilder: Fix HPIvs ignoring hypertraining #2317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thejetou
Copy link
Contributor

There were two cases where hidden powers IVs would be written to a set that could be hypertrained:

  1. Set/team imports
  2. When maxing the IVs of a stat (eg. when a physical move is chosen)

The first case has been fixed by making Storage#importTeam take a format paramater to determine whether hypertraining is possible. The format is only needed when the import is a set since the format is not written to a set so it needs to be specified.

In the second case, its a simple change in TeamBuilderRoom#changeMove to adjust maxing a stat to set it to 31 if it can be hypertrained.

There were two cases where hidden powers IVs would be written to a set
that could be hypertrained:

1. Set/team imports
2. When maxing the IVs of a stat (eg. when a physical move is chosen)

The first case has been fixed by making `Storage#importTeam` take a
`format` paramater to determine whether hypertraining is possible.
The `format` is only needed when the import is a set since the
format is not written to a set so it needs to be specified.

In the second case, its a simple change in `TeamBuilderRoom#changeMove`
to adjust maxing a stat to set it to `31` if it can be hypertrained.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant