From 2953e6d50a36b452a0b3791fa849850cba43eeb7 Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Fri, 19 May 2023 12:57:45 +0100 Subject: [PATCH] Bugfix Switches Target if Multiple Enemies Try to Initiate Combat --- .../the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp index fe22ece..7370a2f 100644 --- a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp +++ b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp @@ -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);