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] Dragon Tail now properly respects abilities like Suction Cups #4252

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

DayKev
Copy link
Collaborator

@DayKev DayKev commented Sep 14, 2024

What are the changes the user will see?

Moves like Dragon Tail now more accurately respect abilities like Suction Cups.

Why am I making these changes?

Came across a bug in unrelated testing and ran into this massive bunch of 🍝.

What are the changes from a developer perspective?

Moves with ForceSwitchOutAttr properly parse the target's abilities to see if they should switch out the target.
Additional tests added for Dragon Tail.
Also fixed the indentation while I was here.

How to test the changes?

npm run test dragon_tail

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?
  • [ ] If I have text, did I make it translatable and add a key in the English locale file(s)?
  • 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?

@DayKev DayKev added Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction labels Sep 14, 2024
@DayKev DayKev requested a review from a team as a code owner September 14, 2024 13:20
@DayKev
Copy link
Collaborator Author

DayKev commented Sep 14, 2024

Btw you can use https://github.com/pagefaultgames/pokerogue/pull/4252/files?diff=unified&w=1 to have GitHub show the diff while ignoring whitespace-only changes.

Copy link
Collaborator

@flx-sta flx-sta left a comment

Choose a reason for hiding this comment

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

lgtm

@innerthunder
Copy link
Collaborator

There's some overlap with #4382 here, as that includes a major rewrite of ForceSwitchOutAttr

@DayKev
Copy link
Collaborator Author

DayKev commented Sep 23, 2024

The only change you made to ForceSwitchOutAttr was to change the second param (and remove the promise, I left that alone because I didn't know the reason for it).

@Tempo-anon Tempo-anon merged commit 554d4f0 into pagefaultgames:beta Sep 23, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants