Bugfix Switches Target if Multiple Enemies Try to Initiate Combat
This commit is contained in:
parent
b52327b122
commit
2953e6d50a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user