Bugfix Over Healing

This commit is contained in:
Philip W 2024-03-13 21:37:42 +00:00
parent 977b80bf64
commit 9ab356f813

View File

@ -162,7 +162,7 @@ void AEndlessVendettaCharacter::RegenHealth()
void AEndlessVendettaCharacter::Heal(const float Amount) void AEndlessVendettaCharacter::Heal(const float Amount)
{ {
CurrentHealth += FMath::Clamp(Amount, 0, MaxHealth); CurrentHealth = FMath::Clamp(Amount + CurrentHealth, 0, MaxHealth);
} }
void AEndlessVendettaCharacter::WeaponPickUpSystem() void AEndlessVendettaCharacter::WeaponPickUpSystem()