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 Toxic Switch AI #5509

Open
Pawkkie opened this issue Oct 11, 2024 · 2 comments
Open

Improve Toxic Switch AI #5509

Pawkkie opened this issue Oct 11, 2024 · 2 comments
Labels
category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature

Comments

@Pawkkie
Copy link
Collaborator

Pawkkie commented Oct 11, 2024

Description

As per discussion in #5462, "AI_FLAG_SMART_SWITCHING: AI will switch out if it has been Toxic'd for at least two turns 50% of the time with more than 1/3 HP remaining" is questionable behaviour at best and actively awful at worst as it just gives the player free damage on an incoming mon. Cases involving HP thresholds etc. should at this point be much better handled by other functions like HasBadOdds.

Was out of scope for that PR, is probably out of scope for #5466 but maybe. Leaving a note here so we don't forget.

Discord contact info

@Pawkkie

@Pawkkie Pawkkie added category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature labels Oct 11, 2024
@Pawkkie
Copy link
Collaborator Author

Pawkkie commented Oct 17, 2024

@AlexOn1ine D'you think this behaviour is good if the AI has a Good Switchin (defensive mon that wins 1v1), or would you toss it regardless?

I am down to either add a clause up front to make sure there's a good switchin or axe it.

@AlexOn1ine
Copy link
Collaborator

I think that's fine. From a player perspective I would switch If I had a really good counter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature
Projects
None yet
Development

No branches or pull requests

2 participants