2023-05-11 04:59:49 +00:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
|
|
|
|
#include "StrengthBuff.h"
|
|
|
|
|
|
|
|
void UStrengthBuff::Invoke(AActor* Character, float TimeOfExpiry)
|
|
|
|
{
|
|
|
|
Super::Invoke(Character, TimeOfExpiry);
|
|
|
|
CombatSystem = Cast<ATurnBaseCombatV2>(GetWorld()->GetGameState());
|
2023-05-12 12:51:08 +00:00
|
|
|
CombatSystem->bIsBuffed = true;
|
2023-05-11 04:59:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UStrengthBuff::OnExpiry(AActor* Character)
|
|
|
|
{
|
|
|
|
Super::OnExpiry(Character);
|
2023-05-12 12:51:08 +00:00
|
|
|
CombatSystem->bIsBuffed = false;
|
2023-05-11 04:59:49 +00:00
|
|
|
}
|