enemy health tests done and passed

This commit is contained in:
2025-04-13 22:23:02 +02:00
parent cc70a7d588
commit c4c01800dd
2 changed files with 56 additions and 43 deletions

View File

@ -103,7 +103,7 @@ func adjust_health_bar() -> void:
func enemy_hurt(amount) -> void:
if current_shield > 0:
if shield > amount:
if current_shield > amount:
current_shield -= amount
else:
amount -= current_shield