Skip to content

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

Merged
Akkadius merged 1 commit intomasterfrom
akkadius/fix-0-hp-edge
Mar 29, 2025
Merged

[Fix] Zone state edge case with 0 hp#4787
Akkadius merged 1 commit intomasterfrom
akkadius/fix-0-hp-edge

Conversation

@Akkadius
Copy link
Contributor

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