prog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user