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

[Fix] Zone state edge case with 0 hp #4787

Merged
merged 1 commit into from
Mar 29, 2025
Merged

Conversation

Akkadius
Copy link
Member

Description

This should potentially fix an issue that I've been unable to reproduce in rarer circumstances where NPC's restore with 0 HP. This change sets HP to max if current HP on restore is 0.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing

None

Checklist

  • I have performed a self-review of my code. Ensuring variables, functions and methods are named in a human-readable way, comments are added only where naming of variables, functions and methods can't give enough context.
  • I have made corresponding changes to the documentation (if applicable, if not delete this line)
  • I own the changes of my code and take responsibility for the potential issues that occur

@Akkadius Akkadius merged commit a05d075 into master Mar 29, 2025
2 checks passed
@Akkadius Akkadius deleted the akkadius/fix-0-hp-edge branch March 29, 2025 19:20
This was referenced Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants