Skip to content

Commit c7b045a

Browse files
committed
remove health check
1 parent 5a72af3 commit c7b045a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/Ext/Techno/WeaponHelpers.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ int TechnoExt::PickWeaponIndex(TechnoClass* pThis, TechnoClass* pTargetTechno, A
1616
else if (!pWeaponStructOne)
1717
return weaponIndexTwo;
1818

19-
if (pTargetTechno && (pTargetTechno->Health <= 0 || !pTargetTechno->IsAlive))
20-
return weaponIndexOne;
21-
2219
auto const pWeaponTwo = pWeaponStructTwo->WeaponType;
2320
auto const pSecondExt = WeaponTypeExt::ExtMap.Find(pWeaponTwo);
2421

src/Ext/TechnoType/Body.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ int TechnoTypeExt::ExtData::SelectMultiWeapon(TechnoClass* const pThis, Abstract
158158

159159
if (const auto pTargetTechno = abstract_cast<TechnoClass*, true>(pTarget))
160160
{
161-
if (pTargetTechno->Health <= 0 || !pTargetTechno->IsAlive)
162-
return 0;
163-
164161
bool getNavalTargeting = false;
165162

166163
auto checkSecondary = [&](int weaponIndex) -> bool

0 commit comments

Comments
 (0)