From 03ebbdd83a1bbe48c04ed1732357ad74cbf90d10 Mon Sep 17 00:00:00 2001 From: Setsul <19393727+Setsul@users.noreply.github.com> Date: Sat, 9 Nov 2024 17:14:39 +0100 Subject: [PATCH] Fix error in commit daaf593c1ff5bb0a6ad7455a7e3a6383f12417ce --- .../common/weapons/infantry/InfantryWeaponHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/megamek/src/megamek/common/weapons/infantry/InfantryWeaponHandler.java b/megamek/src/megamek/common/weapons/infantry/InfantryWeaponHandler.java index 1103797ce0d..9742812d0a3 100644 --- a/megamek/src/megamek/common/weapons/infantry/InfantryWeaponHandler.java +++ b/megamek/src/megamek/common/weapons/infantry/InfantryWeaponHandler.java @@ -105,10 +105,10 @@ protected int calcHits(Vector vPhaseReport) { if ((ae instanceof Infantry) && (nRange == 0)) { InfantryMount mount = ((Infantry) ae).getMount(); if (mount != null) { - if (target.isConventionalInfantry()) { - damageDealt += Compute.d6(mount.getBurstDamageDice()); - } else { + if (!target.isConventionalInfantry()) { damageDealt += mount.getVehicleDamage(); + } else if (mount.getBurstDamageDice() > 0){ + damageDealt += Compute.d6(mount.getBurstDamageDice()); } } }