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 for Octolock bypasses Ghost Invulnerability to lower Stats #4923

Merged
merged 8 commits into from
Nov 30, 2024

Conversation

PrabbyDD
Copy link
Contributor

@PrabbyDD PrabbyDD commented Nov 20, 2024

What are the changes the user will see?

octolock properly interacts with ghost types

Why am I making these changes?

Fixes #4867

What are the changes from a developer perspective?

changed some tests around and removed some obsolete ones, as well as just removing canAdd from octolock tag

Screenshots/Videos

2024-11-19.18-54-16.mp4
2024-11-19.18-54-22.mp4

How to test the changes?

override files, as well as tests

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)
    • Have I created new automated tests (npm run create-test) or updated existing tests related to the PR's changes?
  • Have I provided screenshots/videos of the changes (if applicable)?
    • Have I made sure that any UI change works for both UI themes (default and legacy)?

Are there any localization additions or changes? If so:

  • Has a locales PR been created on the locales repo?
    • If so, please leave a link to it here:
  • Has the translation team been contacted for proofreading/translation?

@PrabbyDD PrabbyDD requested a review from a team as a code owner November 20, 2024 01:32
Copy link
Collaborator

@innerthunder innerthunder left a comment

Choose a reason for hiding this comment

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

The move should fail when used against a Ghost-type instead of resolving and doing nothing.

I think the best approach to fix this would be to add a .condition() function to Octolock, Block, Mean Look, and Spider Web.

@PrabbyDD
Copy link
Contributor Author

What is the intent of using the .condition()? Do I need to subtmit some function into it that checks whether the pokemon is a ghost type and then if it queue a message?

@Madmadness65 Madmadness65 added Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction labels Nov 20, 2024
@DayKev DayKev changed the title [Bug Fix] Fix for Octolock bypasses Ghost Invulnerability to lower Stats [Bug] Fix for Octolock bypasses Ghost Invulnerability to lower Stats Nov 26, 2024
DayKev
DayKev previously approved these changes Nov 26, 2024
src/test/moves/octolock.test.ts Show resolved Hide resolved
Copy link
Collaborator

@innerthunder innerthunder left a comment

Choose a reason for hiding this comment

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

Renaming failIfGhostType -> failIfGhostTypeCondition for parity with the other condition functions

src/data/move.ts Outdated Show resolved Hide resolved
src/data/move.ts Outdated Show resolved Hide resolved
src/data/move.ts Outdated Show resolved Hide resolved
src/data/move.ts Outdated Show resolved Hide resolved
src/data/move.ts Outdated Show resolved Hide resolved
@DayKev DayKev merged commit b70bf0f into pagefaultgames:beta Nov 30, 2024
13 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
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Octolock bypasses Ghost Invulnerability to lower Stats
6 participants