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

[Beta][Bug] Move Phase not Ending Correctly #4848

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

frutescens
Copy link
Collaborator

@frutescens frutescens commented Nov 11, 2024

What are the changes the user will see?

Move Phase should end correctly if the move fails.

Why am I making these changes?

My bug...

What are the changes from a developer perspective?

Removed the conditional requiring the PP Used to be greater than the move's max PP.

Screenshots/Videos

Situation 1:

Screen.Recording.2024-11-11.at.12.04.49.PM.mov

Situation 2:

Screen.Recording.2024-11-11.at.12.06.56.PM.mov

How to test the changes?

Situation 1:

  1. Faint a Pokemon
  2. Progress through the next waves as normal.

Situation 2:

  1. Attempt to run away from a double battle with a Pokemon that has the ability run away, but have the first Pokemon use a move.

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 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?

@frutescens frutescens added P1 Bug Major. Game crashing move/ability/interaction Beta Only present on Beta (didn't make it into production [yet]) labels Nov 11, 2024
@frutescens frutescens requested a review from a team as a code owner November 11, 2024 20:03
@MokaStitcher
Copy link
Collaborator

What's the reason behind the PP check removal?
In the original PR it was changed from && to ||
And now fully removed, is it because it's not necessary anymore to check that here? The comment specifically refers to pp stuff too so if it's not needed we might as well remove it

@frutescens
Copy link
Collaborator Author

What's the reason behind the PP check removal? In the original PR it was changed from && to || And now fully removed, is it because it's not necessary anymore to check that here? The comment specifically refers to pp stuff too so if it's not needed we might as well remove it

It was because the failure check from before specifically checked if the Pokemon was attempting to use a charge move, but had the charge move's PP decrease to 0 during its "charging state" from Spite so it would print out the failure message in that only specific situation. However, the charge move would be unable to be used (move.canUse() -> false) and move phase would end regardless, so I decided that it would be better to remove the check as a whole.

@MokaStitcher MokaStitcher merged commit e5e3926 into pagefaultgames:beta Nov 11, 2024
13 checks passed
@MokaStitcher
Copy link
Collaborator

For reference. Was introduced in PR #4839
Related bug reports on discord here and here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beta Only present on Beta (didn't make it into production [yet]) P1 Bug Major. Game crashing move/ability/interaction
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants