diff --git a/Assets/Prefabs/Projectiles/Healer.prefab b/Assets/Prefabs/Projectiles/Healer.prefab index e9bcf58..98e8f7b 100644 --- a/Assets/Prefabs/Projectiles/Healer.prefab +++ b/Assets/Prefabs/Projectiles/Healer.prefab @@ -5038,7 +5038,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: bounciness: 1 - damage: 10 + damage: -10 wallRebounces: 4 comingFrom: {fileID: 0} OnReflect: diff --git a/Assets/Scripts/Utilities/HealthComponent.cs b/Assets/Scripts/Utilities/HealthComponent.cs index 2e381ad..faf5ba2 100644 --- a/Assets/Scripts/Utilities/HealthComponent.cs +++ b/Assets/Scripts/Utilities/HealthComponent.cs @@ -29,7 +29,7 @@ public class HealthComponent : MonoBehaviour OnHealthChangeAtPos?.Invoke(transform.position, currentHealth - damage); currentHealth -= damage; - currentHealth = (int)Mathf.Clamp(currentHealth, 0f, Mathf.Infinity); + currentHealth = (int)Mathf.Clamp(currentHealth, 0f, startHealth); if (currentHealth == 0) OnHealthZero?.Invoke(); }