-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Move] Rage Fist Implementation #5165
base: beta
Are you sure you want to change the base?
Conversation
Co-authored-by: NightKev <[email protected]>
Co-authored-by: NightKev <[email protected]>
Added changes to documentation and cleaning up code Co-authored-by: NightKev <[email protected]>
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.
code looks good, but for cases like these I like to see automated tests. I can write, if necessary :)
As in, can we get an automated test specifically for ensuring confusion hits don't increase damage? I think you can mock the confusion check to force the mon to hit itself.
That would be nice. I couldn't write tests for the confusion case because I didn't know how to mock it. |
Okay, I'll add it 🫡 |
Continuation of this Rage Fist PR
(#3503)
What are the changes the user will see?
Confusion self inflicted hits does not count to the increased power of rage fist
What are the changes from a developer perspective?
Added a
confHitCount
topokemon.battleData
which only counts self inflicted hits due to confusion. this number gets subtracted fromhitCount
in order to get the correcthitCount
value for rage fistScreenshots/Videos
For reference look at the videos from this PR
How to test the changes?
Spam Splash until you get confused then use Rage Fist and pray for a self hit
Checklist
beta
as my base branchnpm run test
)npm run create-test
) or updated existing tests related to the PR's changes?