From 92a928b9a053f294abc27145704507a61dee2302 Mon Sep 17 00:00:00 2001 From: sleet01 Date: Sat, 23 Sep 2023 17:59:30 -0700 Subject: [PATCH] Fix 4801: replace call with existing boolean --- .../src/megamek/client/bot/princess/InfantryFireControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megamek/src/megamek/client/bot/princess/InfantryFireControl.java b/megamek/src/megamek/client/bot/princess/InfantryFireControl.java index 851a3785a96..18d6b020f75 100644 --- a/megamek/src/megamek/client/bot/princess/InfantryFireControl.java +++ b/megamek/src/megamek/client/bot/princess/InfantryFireControl.java @@ -135,7 +135,7 @@ public double getMaxDamageAtRange(final MovePath shooterPath, final MovePath tar maxFGDamage += damage; } else if (otherWeaponsMayShoot) { // case 5 - if (shooter.isInfantry()) { + if (shooterIsActualInfantry) { // field guns can't fire if the infantry unit has done anything // other than turning, so we only get here if infantry has not used MP. // All valid Infantry Field Weapons can consider rackSize as their damage.