stop hurt i-frames from blocking damage, only block while dying
parent
960a8612b4
commit
dd4fcbdf2c
|
|
@ -62,7 +62,7 @@ func _play_hit_sound() -> void:
|
||||||
ap.play()
|
ap.play()
|
||||||
|
|
||||||
func take_damage(amount: int) -> void:
|
func take_damage(amount: int) -> void:
|
||||||
if is_dying or is_hurt:
|
if is_dying:
|
||||||
return
|
return
|
||||||
hp -= amount
|
hp -= amount
|
||||||
if hp <= 0:
|
if hp <= 0:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue