// 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->BaseDamageMultiplier += 1; } void UStrengthBuff::OnExpiry(AActor* Character) { Super::OnExpiry(Character); CombatSystem->BaseDamageMultiplier -= 1; }