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 Parental Bond #3417

Conversation

AsparagusEduardo
Copy link
Collaborator

Description

Fixes Parental Bond after #2952.

TODO: the rest of the tests.

Issue(s) that this PR fixes

#3407

Discord contact info

AsparagusEduardo

@AsparagusEduardo AsparagusEduardo marked this pull request as ready for review October 15, 2023 15:01
@AsparagusEduardo
Copy link
Collaborator Author

Making the executive decision to merge this PR. Will make an issue to make the missing tests.

@AsparagusEduardo AsparagusEduardo merged commit fef7171 into rh-hideout:master Oct 15, 2023
1 check passed
@AsparagusEduardo AsparagusEduardo deleted the RHH/pr/master/parentalBondFix branch October 15, 2023 15:02
@@ -15765,7 +15765,7 @@ bool32 IsMoveAffectedByParentalBond(u32 move, u32 battler)
{
if (move != MOVE_NONE && move != MOVE_STRUGGLE
&& gBattleMoves[move].split != SPLIT_STATUS
&& !gBattleMoves[move].strikeCount > 2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on upcoming this is gBattleMoves[move].strikeCount <= 2 from 3412 (iirc). Which is correct?

Copy link
Collaborator Author

@AsparagusEduardo AsparagusEduardo Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't, because Parental Bond doesn't affect Multi-hit moves, and the <= 2 means that it would affect moves that hit twice.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth fixing on upcoming too, then

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do once I merge master into upcoming.

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