AzureAbyss/Source/the_twilight_abyss/TurnBasedCombatV2/StatusEffects/HealOverTime.h
2023-04-27 17:59:06 +01:00

28 lines
580 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "../StatusEffect.h"
#include "HealOverTime.generated.h"
/**
*
*/
UCLASS()
class THE_TWILIGHT_ABYSS_API UHealOverTime : public UStatusEffect
{
GENERATED_BODY()
protected:
UFUNCTION()
void Heal(AActor* Character, float Amount) const;
public:
FTimerHandle HealTimerHandle;
virtual void Invoke(AActor* Character, float TimeOfExpiry) override;
virtual void OnExpiry(AActor* Character) override;
UPROPERTY(EditAnywhere)
int HealAmount = 1;
};