-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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.
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? |
There was a problem hiding this 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
Co-authored-by: innerthunder <[email protected]>
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
beta
as my base branchnpm run test
)npm run create-test
) or updated existing tests related to the PR's changes?Are there any localization additions or changes? If so: