// Fill out your copyright notice in the Description page of Project Settings. #include "DamageOverTime.h" #include void UDamageOverTime::OnEnemyTurn(AActor* Enemy, AActor* Character) { ATurnBaseCombatV2* CombatSystem = Cast(GetWorld()->GetGameState()); CombatSystem->DamageEnemy(DamagePerTurn, "DOT"); BaseDuration -= 1.0f; Super::OnEnemyTurn(Enemy, Character); if (BaseDuration <= 0.0f) { OnExpiry(Character); } }