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

Fixed Comatose AI checks #2866

Merged

Conversation

AsparagusEduardo
Copy link
Collaborator

@AsparagusEduardo AsparagusEduardo commented Mar 27, 2023

Description

Eg. Dream Eater's check was like this:

case EFFECT_DREAM_EATER:
    if (!(gBattleMons[battlerDef].status1 & STATUS1_SLEEP) || AI_DATA->abilities[battlerDef] == ABILITY_COMATOSE)
        score -= 8;
    else if (effectiveness == AI_EFFECTIVENESS_x0)
        score -= 10;
    break;

Meaning that if the target had Comatose, it would reduce points from the score when it shouldn't.

Discord contact info

AsparagusEduardo#6051

@ghoulslash ghoulslash merged commit ff2afb0 into rh-hideout:upcoming Apr 7, 2023
@AsparagusEduardo AsparagusEduardo deleted the RHH/pr/fix/AiComatose branch April 26, 2023 18:18
@AsparagusEduardo AsparagusEduardo mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants