stop hurt i-frames from blocking damage, only block while dying

main
Artur David 2026-06-23 23:28:01 +02:00
parent 960a8612b4
commit dd4fcbdf2c
1 changed files with 1 additions and 1 deletions

View File

@ -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: