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

[Bug] Fix blocking menu when 6 starter selected #3333

Merged

Conversation

KimJeongSun
Copy link
Collaborator

@KimJeongSun KimJeongSun commented Aug 4, 2024

What are the changes?

Fixed an issue where the menu wouldn't open when 6 starter Pokémon were selected.

Why am I doing these changes?

Previously, this issue prevented the removeFromParty action from being performed through the menu when a 6th Pokémon was added.

What did change?

Modified the if condition for opening the menu.

Screenshots/Videos

before ( can't open menu )
Screenshot 2024-08-04 at 3 59 07 PM
after ( can open menu )
Screenshot 2024-08-04 at 3 59 19 PM

How to test the changes?

Checklist

  • I'm using beta as my base branch
  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I considered writing automated tests for the issue?
  • Have I tested the changes (manually)?
    • Are all unit tests still passing? (npm run test)
  • Are the changes visual?
    • Have I provided screenshots/videos of the changes?

@KimJeongSun KimJeongSun changed the title fix bug of block menu when 6 starter [Bug] Fix blocking menu when 6 starter selected Aug 4, 2024
@Tempo-anon Tempo-anon added the (Legacy) Bug Legacy Label, don't apply to new issues/PRs label Aug 4, 2024
@KimJeongSun KimJeongSun marked this pull request as ready for review August 4, 2024 07:03
@@ -1265,7 +1265,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
if (button === Button.ACTION) {
if (!this.speciesStarterDexEntry?.caughtAttr) {
error = true;
} else if (this.starterSpecies.length < 6) { // checks to see you have less than 6 pokemon in your party
} else if (this.starterSpecies.length <= 6) { // checks to see you have less than 6 pokemon in your party
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment no longer matches the logic

Copy link
Collaborator Author

@KimJeongSun KimJeongSun Aug 4, 2024

Choose a reason for hiding this comment

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

thanks for comment i updated comment

// checks to see if the party has 6 or fewer pokemon

@Tempo-anon Tempo-anon merged commit 8b8ac41 into pagefaultgames:beta Aug 4, 2024
4 checks passed
@KimJeongSun KimJeongSun deleted the fix-6-starter-menu-block-bug branch August 4, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants