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

Fix Choice'd mons referring to incorrect move when switching #6204

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

Pawkkie
Copy link
Collaborator

@Pawkkie Pawkkie commented Feb 7, 2025

Description

One of @iriv24's players sent a recording of some weird switching behaviour which lead to this discovery. Turns out ShouldSwitchIfBadChoiceLock was checking if the last move used globally was a status move, not the last move the choice'd mon had used was. Whoops!

This is to upcoming because GetMoveCategory isn't in master.

People who collaborated with me in this PR

@/capncrunch

Discord contact info

@Pawkkie

@Pawkkie Pawkkie added category: battle-ai Pertains to Battle Engine Upgrade's AI bugfix Bugfixes labels Feb 7, 2025
@hedara90 hedara90 merged commit e77fe32 into rh-hideout:upcoming Feb 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: battle-ai Pertains to Battle Engine Upgrade's AI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants