Skip to content

Commit

Permalink
Fix 4801: replace call with existing boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Sep 24, 2023
1 parent 683fc91 commit 92a928b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 92a928b

Please sign in to comment.