// 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(GetWorld()->GetGameState()); CombatSystem->bIsBuffed = true; } void UStrengthBuff::OnExpiry(AActor* Character) { Super::OnExpiry(Character); CombatSystem->bIsBuffed = false; }