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

Wrong pokemon when using AI_FLAG_ACE_POKEMON in multi battles #6111

Open
Kasenn opened this issue Jan 26, 2025 · 3 comments
Open

Wrong pokemon when using AI_FLAG_ACE_POKEMON in multi battles #6111

Kasenn opened this issue Jan 26, 2025 · 3 comments
Labels
bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet

Comments

@Kasenn
Copy link

Kasenn commented Jan 26, 2025

Description

In a multi battle, if the 1st trainer has the flag AI_FLAG_ACE_POKEMON, when it comes time to pick their ace, instead of picking from their team (mons 1-3), they will instead take the last pokemon of the entire party. This means that instead of picking their own personal ace, they will instead steal a mon from their partner

Version

1.10.1 (Latest release)

Upcoming/master Version

No response

Discord contact info

No response

@Kasenn Kasenn added bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet labels Jan 26, 2025
@Pawkkie
Copy link
Collaborator

Pawkkie commented Jan 26, 2025

Dyou have a scenario I can use to recreate this easily? By "when it comes time to send in their ace" dyou mean when they're out of pokemon or something else? What AI flags are both trainers using?

Thanks for reporting!

@Kasenn
Copy link
Author

Kasenn commented Jan 26, 2025

Both trainers were using AI_FLAG_CHECK_BAD_MOVE | AI_FLAG_TRY_TO_FAINT | AI_FLAG_CHECK_VIABILITY | AI_FLAG_ACE_POKEMON, with the first trainer having glalie, cryogonal, and mamoswine and the second trainer having ninetales, darmanitan and camerupt. i started by taking out the glalie and cryogonal, and instead of bringing out the mamoswine next, they brought out the other trainer's camerupt

@Pawkkie
Copy link
Collaborator

Pawkkie commented Jan 29, 2025

Note to future selves, is this actually just another manifestation of #5136 in a trenchcoat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants