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] Attacks that miss against pokemon in semi invul state that have abilities such as volt absorb will not trigger while semi invulnerable #4663

Open
wants to merge 3 commits into
base: beta
Choose a base branch
from

Conversation

PrabbyDD
Copy link
Contributor

What are the changes the user will see?

This interaction will now work properly. For example, if thunderbolt is used against a pokemon with volt absorb, and that pokemon with volt absorb is in a semi invulnerable state, the attack will just miss instead of triggering the ability.

related to #4337

Why am I making these changes?

Bug fix

What are the changes from a developer perspective?

added check in move-effect-phase.ts for if pokemon is in semi invulnerable state

Screenshots/Videos

2024-10-14.13-51-11.mp4

How to test the changes?

Override files, run the updated volt absorb test file, and manually change return value of hitcheck() to false.

Checklist

  • [X ] I'm using beta as my base branch
  • [X ] There is no overlap with another PR?
  • [ X] The PR is self-contained and cannot be split into smaller PRs?
  • [X ] Have I provided a clear explanation of the changes?
  • [X ] 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)?
  • [X ] Have I tested the changes (manually)?
    • [X ] Are all unit tests still passing? (npm run test)
  • [X ] Are the changes visual?
    • [X ] Have I provided screenshots/videos of the changes?

@Snailman11
Copy link
Collaborator

@PrabbyDD Make sure to link your fixes with the bugs

Link to Original Discord Bug Report (aqua step (by quaq) heals wild politoed in bounce. If it can't be hit, shouldn't it not heal?)
https://discord.com/channels/1125469663833370665/1290401734593875969

@Tempo-anon
Copy link
Collaborator

what if the user or target have no guard?

@Tempo-anon Tempo-anon added Move Affects a move Ability Affects an ability P2 Bug Minor. Non crashing Incorrect move/ability/interaction labels Oct 14, 2024
@PrabbyDD
Copy link
Contributor Author

what if the user or target have no guard?

No guard seemingly works fine. It bypasses the semi invul state, thus registering a hit, and triggering the ability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ability Affects an ability Move Affects a move P2 Bug Minor. Non crashing Incorrect move/ability/interaction
Projects
Status: To triage
Development

Successfully merging this pull request may close these issues.

4 participants