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: only send OnDamagedEvent on positive amount of damage #98

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

skaldarnar
Copy link
Contributor

Problem: It can happen that an entity is damaged which is already sitting on 0 points of health. Notify that such an entity was damaged with a total amount of zero points of damage may cause issues in other systems, e.g., in Behaviors.

Solution: Don't send out OnDamagedEvents if the entity did take zero points of damage.

**Problem:** It can happen that an entity is damaged which is already sitting on 0 points of health. Notify that such an entity was damaged with a total amount of zero points of damage may cause issues in other systems, e.g., in Behaviors.

**Solution:** Don't send out OnDamagedEvents if the entity did take zero points of damage.
@jdrueckert jdrueckert merged commit 0598fad into develop Dec 2, 2021
@jdrueckert jdrueckert deleted the fix/only-notify-on-nonzero-damage branch December 2, 2021 23:21
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.

None yet

2 participants