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

IsMonGrounded does not check for magic room correctly #6122

Open
ShadowzLmao2 opened this issue Jan 26, 2025 · 0 comments
Open

IsMonGrounded does not check for magic room correctly #6122

ShadowzLmao2 opened this issue Jan 26, 2025 · 0 comments
Labels
bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet

Comments

@ShadowzLmao2
Copy link

Description

Updated Code:

{
    // List that makes mon not grounded
    if (!(gFieldStatuses & STATUS_FIELD_GRAVITY) && !(heldItemEffect == HOLD_EFFECT_IRON_BALL && !(ability == ABILITY_KLUTZ || gFieldStatuses & STATUS_FIELD_MAGIC_ROOM))
        && (type1 == TYPE_FLYING || type2 == TYPE_FLYING || ability == ABILITY_LEVITATE
        || (heldItemEffect == HOLD_EFFECT_AIR_BALLOON && ability != ABILITY_KLUTZ && !gFieldStatuses & STATUS_FIELD_MAGIC_ROOM)))
        return FALSE;
    else
        return TRUE;
}

Version

1.10.1 (Latest release)

Upcoming/master Version

No response

Discord contact info

SShadowzLmao#3643

@ShadowzLmao2 ShadowzLmao2 added bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug category: battle-ai Pertains to Battle Engine Upgrade's AI status: unconfirmed This bug has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant