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

Implement fainted forme regression #10810

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andrebastosdias
Copy link
Contributor

@andrebastosdias andrebastosdias commented Jan 9, 2025

@KrisXV I believe I have implemented your PR #9135 Closes #10025

I hard-coded regressions for Mega Evolutions, and Terastallized Ogerpon and Terapagos. I am not aware of any other Pokémon with this issue.

The first commit is just a simplification of the update of details, while the second commit contains the logic for the regression. It's easier to review as separate commits.

IMPORTANT: The client should not display the transform animation after the Pokémon faints. I added the [silent] flag, but I don’t think it’s necessary, as the animation occurs after the Pokémon leaves the screen (the client should be able to check this). Aside from that, the only other change is the Pokémon icon updating, which already happens.

@andrebastosdias
Copy link
Contributor Author

I removed the tests from the Revival Blessing file and kept only Terapagos's tests so that we can also verify if Terapagos-Terastal does not revert. The other tests are a bit redundant.

sim/battle.ts Outdated Show resolved Hide resolved
Co-authored-by: pyuk-bot <[email protected]>
@pyuk-bot
Copy link
Contributor

pyuk-bot commented Jan 9, 2025

I think Morpeko also needs special treatment to ensure it reverts to the correct forme after fainting while Terastallized.

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.

Ogerpon-Tera and Terapagos-Stellar should revert after Revival Blessing
2 participants