public static ToHitData getImmobileMod(Targetable target, int aimingAt, int aimingMode) { if (target.isImmobile()) { if ((aimingAt == Mech.LOC_HEAD) && (aimingMode == IAimingModes.AIM_MODE_IMMOBILE)) { return new ToHitData(3, "aiming at head"); } else { return new ToHitData(-4, "target immobile"); } } else { return null; }
public static ToHitData getImmobileMod(Targetable target) { return getImmobileMod(target, Mech.LOC_NONE, IAimingModes.AIM_MODE_NONE);
    public static ToHitData getImmobileMod(Targetable target, int aimingAt, int aimingMode) {        if (target.isImmobile()) {            if ((aimingAt == Mech.LOC_HEAD) &&                (aimingMode == IAimingModes.AIM_MODE_IMMOBILE)) {                return new ToHitData(3, "aiming at head");            } else {                return new ToHitData(-4, "target immobile");            }        } else {            return null;        }    }