Skip to content

Commit 8c9dcff

Browse files
committed
Fix issue with NoSecondaryWeaponFallback caused by incorrect evaluation of weapon firing conditions
1 parent 5447c8c commit 8c9dcff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ext/Techno/WeaponHelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int TechnoExt::PickWeaponIndex(TechnoClass* pThis, TechnoClass* pTargetTechno, A
5353
const bool secondIsAA = pTargetTechno && pTargetTechno->IsInAir() && pWeaponTwo->Projectile->AA;
5454
auto const pFirstExt = WeaponTypeExt::ExtMap.Find(pWeaponStructOne->WeaponType);
5555
const bool skipPrimaryPicking = pFirstExt->SkipWeaponPicking;
56-
const bool firstAllowedAE = !skipPrimaryPicking && pFirstExt->HasRequiredAttachedEffects(pTargetTechno, pThis);
56+
const bool firstAllowedAE = skipPrimaryPicking || pFirstExt->HasRequiredAttachedEffects(pTargetTechno, pThis);
5757

5858
if (!allowFallback
5959
&& (!allowAAFallback || !secondIsAA)

0 commit comments

Comments
 (0)