-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 newer generation Heal Bell interactions with Soundproof #4732
Conversation
Tests failing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can IsBattlerAlive
not be used in those cases?
src/battle_ai_util.c
Outdated
if ((GetMonData(&party[battlerOnField2], MON_DATA_STATUS) != STATUS1_NONE) | ||
&& (GetBattlerAbility(battlerOnField2) != ABILITY_SOUNDPROOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make 2 bools for those things since they are checked twice and would make the code a little bit cleaner
You could go even as far as making a bool for the whole soundproof condition or at least part of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly these aren't checked twice, it's a different battler in each case.
Addresses #4704
Discord contact info
duke5614