ash.setPartialCover(toHit.getHitTable() == ToHitData.HIT_PUNCH);
ash.setPartialCover(toHit.getCover());
    protected void updateTarget() {        setFireEnabled(false);                // make sure we're showing the current entity in the mech display        if (ce() != null && !ce().equals(clientgui.mechD.getCurrentEntity())) {            clientgui.mechD.displayEntity(ce());        }                // update target panel        final int weaponId = clientgui.mechD.wPan.getSelectedWeaponNum();        if (target != null && weaponId != -1) {            ToHitData toHit;            if (ash.inAimingMode()) {            Mounted weapon = (Mounted) ce().getEquipment(weaponId);              boolean aiming = ash.isAimingAtLocation() &&                       ash.allowAimedShotWith(weapon);              ash.setEnableAll(aiming);              if (aiming) {                toHit = WeaponAttackAction.toHit(client.game, cen, target, weaponId, ash.getAimingAt(), ash.getAimingMode());                clientgui.mechD.wPan.wTargetR.setText(target.getDisplayName() + " (" + ash.getAimingLocation() + ")"); //$NON-NLS-1$ //$NON-NLS-2$              } else {                toHit = WeaponAttackAction.toHit(client.game, cen, target, weaponId, Mech.LOC_NONE, IAimingModes.AIM_MODE_NONE);                clientgui.mechD.wPan.wTargetR.setText(target.getDisplayName());              }              ash.setPartialCover(toHit.getHitTable() == ToHitData.HIT_PUNCH);            } else {              toHit = WeaponAttackAction.toHit(client.game, cen, target, weaponId, Mech.LOC_NONE, IAimingModes.AIM_MODE_NONE);              clientgui.mechD.wPan.wTargetR.setText(target.getDisplayName());            }            clientgui.mechD.wPan.wRangeR.setText("" + ce().getPosition().distance(target.getPosition())); //$NON-NLS-1$            Mounted m = ce().getEquipment(weaponId);            if (m.isUsedThisRound()) {                clientgui.mechD.wPan.wToHitR.setText(Messages.getString("FiringDisplay.alreadyFired")); //$NON-NLS-1$                setFireEnabled(false);            } else if (m.getType().hasFlag(WeaponType.F_AUTO_TARGET)) {                clientgui.mechD.wPan.wToHitR.setText(Messages.getString("FiringDisplay.autoFiringWeapon")); //$NON-NLS-1$                setFireEnabled(false);            } else if (toHit.getValue() == ToHitData.IMPOSSIBLE) {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString());                setFireEnabled(false);            } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString());                setFireEnabled(true);            } else {                clientgui.mechD.wPan.wToHitR.setText(toHit.getValueAsString() + " (" + Compute.oddsAbove(toHit.getValue()) + "%)"); //$NON-NLS-1$ //$NON-NLS-2$                setFireEnabled(true);            }            clientgui.mechD.wPan.toHitText.setText(toHit.getDesc());            setSkipEnabled(true);        } else {            clientgui.mechD.wPan.wTargetR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.wRangeR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.wToHitR.setText("---"); //$NON-NLS-1$            clientgui.mechD.wPan.toHitText.setText(""); //$NON-NLS-1$        }    }