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

Add Anger Point/Crit Moves Doubles AI Interaction #5244

Merged
merged 4 commits into from
Aug 25, 2024

Conversation

SarnPoke
Copy link

Description

Encourages the AI to use an "always crit" move on its partner, if that partner has the Anger Point ability.

Discord contact info

sarnnn

Encourages the AI to use an "always crit" move on its partner, if that partner has the Anger Point ability.
@u8-Salem
Copy link

maybe this should make sure that the move doesnt ohko the partner

@hedara90
Copy link
Collaborator

This probably needs a check to see if Atk isn't already maximized.

@u8-Salem
Copy link

This probably needs a check to see if Atk isn't already maximized.

doesnt BattlerStatCanRise do this ?

@SarnPoke
Copy link
Author

maybe this should make sure that the move doesnt ohko the partner

I agree.

This probably needs a check to see if Atk isn't already maximized.

doesnt BattlerStatCanRise do this ?

It should, yeah. I tested and the AI doesn't just spam it on its partner. It only does it once.

@hedara90
Copy link
Collaborator

This probably needs a check to see if Atk isn't already maximized.

doesnt BattlerStatCanRise do this ?

Yea, it does, don't know how I missed that

Makes sure that the crit move does not OHKO the partner with Anger Point.
@SarnPoke
Copy link
Author

Will this do?

Fixes small mistake
src/battle_ai_main.c Outdated Show resolved Hide resolved
Checks if mon is faster than its Anger Point partner when scoring.
@AlexOn1ine AlexOn1ine added category: battle-ai Pertains to Battle Engine Upgrade's AI bugfix Bugfixes labels Aug 24, 2024
@AlexOn1ine AlexOn1ine merged commit 5de0f3c into rh-hideout:master Aug 25, 2024
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.

4 participants