Bugfix Switches Target if Multiple Enemies Try to Initiate Combat

This commit is contained in:
Philip W 2023-05-19 12:57:45 +01:00
parent b52327b122
commit 2953e6d50a

View File

@ -44,8 +44,8 @@ ATurnBaseCombatV2::ATurnBaseCombatV2()
void ATurnBaseCombatV2::StartCombat(AActor* Enemy, const bool bWasShot)
{
if (Enemy == nullptr) return;
EnemyActor = Enemy;
if (bIsInCombat) return;
EnemyActor = Enemy;
BookHUD->SetVisibility(ESlateVisibility::SelfHitTestInvisible);
HUD->AddToViewport(-1);
BookStaticMeshComponent->SetVisibility(true);