Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Health rolling negative #56

Closed
FarazzShaikh opened this issue Nov 5, 2020 · 1 comment
Closed

Health rolling negative #56

FarazzShaikh opened this issue Nov 5, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@FarazzShaikh
Copy link
Owner

Problem

Health is being subtracted from even after its zero. Shouldn't be a problem after death is implement but is a bug in current release.

Bugged Lines

https://github.com/F28WP-Dubai-Group-6/LunarLander/blob/7d6d86f3c8bd8642cefc78ddaf18e783d5333d45/server/src/Game/Collision.js#L33

Potential Solution

Guard the damage routine with an if block. Only allow subtraction of damage if the health is greater than 0.

@FarazzShaikh FarazzShaikh added the bug Something isn't working label Nov 5, 2020
@KishanBapodra
Copy link
Contributor

KishanBapodra commented Nov 5, 2020 via email

KishanBapodra added a commit to KishanBapodra/LunarLander that referenced this issue Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants