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

Fixed Retaliate not working correctly with passive damage #5182

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

hedara90
Copy link
Collaborator

If a pokemon fainted from damage at the end of turn, (e.g. Poison, Burn, Leech Seed, Bind effects), Retaliate did not get the boosted base power the next turn. Instead Retaliate was boosted on the turn after it was supposed to.
Flame Burst was also bugged, fixed it in order to make the tests work.

Description

Moved the decrement of retaliateTimer to the start of turn instead of end of turn so that it doesn't matter at what point in time during the turn a pokemon faints.
Wrote tests for Retaliate interactions I could think of.
Fixed a bug with Flame Burst where current HP was used to calculate damage from Flame Burst AoE effect.

Issue(s) that this PR fixes

#5153

Discord contact info

hedara

@hedara90 hedara90 added category: move effect Pertains to move effects bugfix Bugfixes labels Aug 16, 2024
@AlexOn1ine AlexOn1ine merged commit bd3d99d into rh-hideout:master Aug 16, 2024
1 check passed
@hedara90 hedara90 deleted the retaliate-passive-damage-fix branch August 16, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: move effect Pertains to move effects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants