ToHitData rightRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.RIGHTMULE); ToHitData leftRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.LEFTMULE);
ToHitData rightRearLeg = null; ToHitData leftRearLeg = null; if (client.game.getEntity(cen) instanceof QuadMech && client.game.getOptions().booleanOption("maxtech_mulekicks")) { rightRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.RIGHTMULE); leftRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.LEFTMULE); }
    private void kick() {        ToHitData leftLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.LEFT);        ToHitData rightLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.RIGHT);        ToHitData rightRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.RIGHTMULE);        ToHitData leftRearLeg = KickAttackAction.toHit(client.game, cen, target, KickAttackAction.LEFTMULE);        ToHitData attackLeg;        int attackSide=KickAttackAction.LEFT;        int value = leftLeg.getValue();        attackLeg = leftLeg;                if (value>rightLeg.getValue()) {            value = rightLeg.getValue();            attackSide = KickAttackAction.RIGHT;            attackLeg = rightLeg;        }        if (value>rightRearLeg.getValue()) {            value = rightRearLeg.getValue();            attackSide = KickAttackAction.RIGHTMULE;            attackLeg = rightRearLeg;        }        if (value>leftRearLeg.getValue()) {            value = leftRearLeg.getValue();            attackSide = KickAttackAction.LEFTMULE;            attackLeg = leftRearLeg;        }                String title = Messages.getString("PhysicalDisplay.KickDialog.title", new Object[]{target.getDisplayName()}); //$NON-NLS-1$        String message = Messages.getString("PhysicalDisplay.KickDialog.message", new Object[]{ //$NON-NLS-1$                attackLeg.getValueAsString(), new Double(Compute.oddsAbove(attackLeg.getValue())), attackLeg.getDesc()                ,KickAttackAction.getDamageFor(ce(),attackSide)+attackLeg.getTableDesc()});        if (clientgui.doYesNoDialog(title, message)){            disableButtons();            attacks.addElement(new KickAttackAction(cen, target.getTargetType(), target.getTargetId(), attackSide));            ready();        }    }