18 lines
437 B
C++
18 lines
437 B
C++
// 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());
|
|
CombatSystem->bIsBuffed = true;
|
|
}
|
|
|
|
void UStrengthBuff::OnExpiry(AActor* Character)
|
|
{
|
|
Super::OnExpiry(Character);
|
|
CombatSystem->bIsBuffed = false;
|
|
}
|