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

[Move][Checkup] Present #313

Closed
8 tasks done
frutescens opened this issue Jan 18, 2025 · 0 comments · Fixed by #337
Closed
8 tasks done

[Move][Checkup] Present #313

frutescens opened this issue Jan 18, 2025 · 0 comments · Fixed by #337
Labels
Checkup Part of an effort to ensure that moves/abilities/game features are functioning correctly. Move For move implementations/interactions

Comments

@frutescens
Copy link
Contributor

frutescens commented Jan 18, 2025

Details

  • Passes all_moves.test.ts
  • Present can either deal damage against the target or heal it for 1/4 of its maximum HP. If Present deals damage, then the base power of Present is chosen at random from 40, 80, or 120.
  • Present's effect is chosen randomly as shown below.
    Damage with 40 base power 40%
    Damage with 80 base power 30%
    Damage with 120 base power 10%
    Heal 1/4 of the target's max HP 20%
  • If a Pokémon with Parental Bond uses Present and heals the target, it will only hit once. However, if it damages the target, it will hit twice.
  • If Present is used on an ally with Telepathy, Present will always be blocked, even if it would have healed the target.

Development Notes

Related PRs

Related Bugs

  • Uses global RNG instead of seeded RNG
  • If healing is selected, the user is damaged for 1 HP and then healed.

References

@frutescens frutescens added Move For move implementations/interactions Checkup Part of an effort to ensure that moves/abilities/game features are functioning correctly. labels Jan 18, 2025
@frutescens frutescens linked a pull request Jan 21, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Checkup Part of an effort to ensure that moves/abilities/game features are functioning correctly. Move For move implementations/interactions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant