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

using a Persim Berry in battle activates the effect for the wrong battler #6094

Open
wiz1989 opened this issue Jan 24, 2025 · 1 comment
Open
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet

Comments

@wiz1989
Copy link

wiz1989 commented Jan 24, 2025

Description

The issue is that gBattleStruct->itemPartyIndex[battler] = PARTY_SIZE and thus BS_ItemCureStatus thinks it is not used on the active battler.
This value is set in HandleTurnActionSelectionState.

Image

Version

1.9.4

Upcoming/master Version

No response

Discord contact info

wiz1989

@wiz1989 wiz1989 added bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet labels Jan 24, 2025
@wiz1989
Copy link
Author

wiz1989 commented Feb 4, 2025

Had to change the use function type to make it work.
Otherwise the battler was incorrectly determined.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant