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

Fixes heal blocked leeach seed in tests #5700

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

AlexOn1ine
Copy link
Collaborator

Description

The test system couldn't recognize that heal block blocked leech seed recovery because the script still ran through all the update hp checks with recovery being set to 0 (I would consider this a bug even).

@AlexOn1ine AlexOn1ine added category: battle-mechanic Pertains to battle mechanics bugfix Bugfixes labels Nov 21, 2024
mrgriffin
mrgriffin previously approved these changes Nov 21, 2024
OPPONENT(SPECIES_SHELLDER);
} WHEN {
TURN { MOVE(player, MOVE_LEECH_SEED); }
TURN {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this second turn?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really but I followed the name of the test that was already present as a todo and thought I'll add it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge it as-is, but I thiiink unless I'm misreading the test that it would pass with just the first TURN :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, right. will adjust

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed I think. I compare the drained damage only once though. The other is just a normal hp check. I think this should be enough

@AlexOn1ine
Copy link
Collaborator Author

fixed unrelated failing tests.

@mrgriffin mrgriffin merged commit 612c8d3 into rh-hideout:upcoming Nov 21, 2024
1 check passed
@AlexOn1ine AlexOn1ine deleted the leech_seed branch November 21, 2024 22:33
iriv24 pushed a commit to iriv24/pokeemerald-expansion that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: battle-mechanic Pertains to battle mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants