Bugfix Heal Over Time Exposed Heal Amount
This commit is contained in:
parent
fc8c6bae19
commit
0f0618ed0a
@ -20,7 +20,7 @@ void UHealOverTime::Heal(AActor* Character, const float Amount) const
|
||||
void UHealOverTime::Invoke(AActor* Character, float TimeOfExpiry)
|
||||
{
|
||||
Super::Invoke(Character, TimeOfExpiry);
|
||||
GetWorld()->GetTimerManager().SetTimer(HealTimerHandle, [this, Character] { Heal(Character, 1); }, 1, true, 0);
|
||||
GetWorld()->GetTimerManager().SetTimer(HealTimerHandle, [this, Character] { Heal(Character, HealAmount); }, 1, true, 0);
|
||||
}
|
||||
|
||||
void UHealOverTime::OnExpiry(AActor* Character)
|
||||
|
@ -22,4 +22,6 @@ public:
|
||||
FTimerHandle HealTimerHandle;
|
||||
virtual void Invoke(AActor* Character, float TimeOfExpiry) override;
|
||||
virtual void OnExpiry(AActor* Character) override;
|
||||
UPROPERTY(EditAnywhere)
|
||||
int HealAmount = 1;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user