AzureAbyss/Source/the_twilight_abyss/TurnBasedCombatV2/StatusEffects/StrengthBuff.cpp

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