Skip to content

Commit

Permalink
added the other overloaded rollHitLocation to LAM class to ensure cor…
Browse files Browse the repository at this point in the history
…rect one is activated
  • Loading branch information
DM0000 committed Nov 4, 2024
1 parent 04dd889 commit 3a7d53c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion megamek/src/megamek/common/LandAirMek.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.Map;
import java.util.Vector;

import megamek.common.enums.AimingMode;
import megamek.common.enums.MPBoosters;
import megamek.common.equipment.AmmoMounted;
import megamek.common.equipment.BombMounted;
Expand Down Expand Up @@ -1498,12 +1499,23 @@ public int getWeaponArc(int wn) {
/**
* Hit location table for fighter mode
*/
@Override
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode,
int cover) {
if (getConversionMode() != CONV_MODE_FIGHTER) {
return super.rollHitLocation( table, side, aimedLocation, aimingMode,
cover);
}
return rollHitLocation(table, side);
}

@Override
public HitData rollHitLocation(int table, int side) {
if (getConversionMode() == CONV_MODE_MEK) {
if (getConversionMode() != CONV_MODE_FIGHTER) {
return super.rollHitLocation(table, side);
}


int roll = Compute.d6(2);

// first check for above/below
Expand Down

0 comments on commit 3a7d53c

Please sign in to comment.