Bugfix Able to Shoot in Menus

This commit is contained in:
Philip W 2023-05-21 17:24:58 +01:00
parent 8a8288fbff
commit b4b248b5e7
2 changed files with 3 additions and 2 deletions

BIN
Content/Levels/Build.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -67,6 +67,7 @@ void UHoldToInitCombat::OnClickDown()
{
if (!bHasBookAndGun) return;
if (Cast<ATurnBaseCombatV2>(GetWorld()->GetGameState())->bIsInCombat) return;
if (Cast<ATempCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->bIsInDialogue || Cast<ATempCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->bShopKeeperText || Cast<ATempCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn())->InventoryWidget->IsVisible()) return;
if (ReloadTimer > 0.0f) return;
if (GunEffect)
{