This commit is contained in:
2026-01-16 22:01:19 -06:00
parent 346e3f0607
commit c46afdac76
5 changed files with 48 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ func _init(params:Dictionary) -> void:
self.mp = self.maxMp
func damage(amount:int, crit:bool) -> void:
assert(amount > 0)
assert(amount >= 0)
if status == Status.DEAD:
return
health = max(health - amount, 0)