a game about throwing hammers made for the github game off
dont be invulnerable
bendn 2022-12-04
parent ec2b5da · commit 2886411
-rw-r--r--player/player.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/player.gd b/player/player.gd
index 4aa382a..de4ce55 100644
--- a/player/player.gd
+++ b/player/player.gd
@@ -77,7 +77,7 @@ var health := max_health:
set(hp):
health = hp
hp_changed.emit(hp)
- if hp == 0:
+ if hp <= 0:
death.open()
queue_free()