Bugfix Over Healing
This commit is contained in:
parent
977b80bf64
commit
9ab356f813
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user