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

Improve Yawn and Status Switching #6202

Merged
merged 4 commits into from
Feb 13, 2025

Conversation

Pawkkie
Copy link
Collaborator

@Pawkkie Pawkkie commented Feb 7, 2025

Description

Smart switching AI would switch out if it's Yawn'd under certain conditions (more than 1/3 HP, can't OHKO, can't cure its own status, doesn't have boosted evasion). This wasn't first checking whether the AI had an actually competent mid-battle switchin candidate first.

This turns out to be pretty abusable lol

This PR adds that consideration, and adjusts the tests accordingly. Adds the same consideration to other "Switch out with bad status" cases.

People who collaborated with me in this PR

@/Chape for finding this behaviour

Discord contact info

@Pawkkie

@Pawkkie Pawkkie added category: battle-ai Pertains to Battle Engine Upgrade's AI bugfix Bugfixes labels Feb 7, 2025
@Pawkkie Pawkkie changed the base branch from master to upcoming February 7, 2025 03:29
@Pawkkie Pawkkie changed the title Improve Yawn Switching Improve Yawn and Status Switching Feb 7, 2025
@Pawkkie
Copy link
Collaborator Author

Pawkkie commented Feb 9, 2025

Forgot to comment feedback addressed, mb!

@Bassoonian Bassoonian merged commit f851fb5 into rh-hideout:upcoming Feb 13, 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