enemy health tests done and passed
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user