if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) { phaseReport.append(" but the target is already destroyed!\n"); return; }
    private void resolveKickAttack(KickAttackAction kaa, int lastEntityId) {        final Entity ae = game.getEntity(kaa.getEntityId());        final Entity te = game.getEntity(kaa.getTargetId());        final String legName = kaa.getLeg() == KickAttackAction.LEFT        ? "Left Leg"        : "Right Leg";                if (lastEntityId != ae.getId()) {            phaseReport.append("\nPhysical attacks for " + ae.getDisplayName() + "\n");        }                phaseReport.append("    Kick (" + legName + ") at " + te.getDisplayName());                // should we even bother?        if (te.isDestroyed() || te.isDoomed() || te.crew.isDead()) {            phaseReport.append(" but the target is already destroyed!\n");            return;        }        // compute to-hit        ToHitData toHit = Compute.toHitKick(game, kaa);        if (toHit.getValue() == ToHitData.IMPOSSIBLE) {            phaseReport.append(", but the kick is impossible (" + toHit.getDesc() + ")\n");            pilotRolls.addElement(new PilotingRollData(ae.getId(), 0, "missed a kick"));            return;        }        phaseReport.append("; needs " + toHit.getValue() + ", ");                // roll        int roll = Compute.d6(2);        phaseReport.append("rolls " + roll + " : ");                // do we hit?        if (roll < toHit.getValue()) {            // miss            phaseReport.append("misses.\n");            pilotRolls.addElement(new PilotingRollData(ae.getId(), 0, "missed a kick"));            return;        }                int damage = Compute.getKickDamageFor(ae, kaa.getLeg());                HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable());        phaseReport.append("hits" + toHit.getTableDesc() + " " + te.getLocationAbbr(hit));        phaseReport.append(damageEntity(te, hit, damage));                if (te.getMovementType() == Entity.MovementType.BIPED || te.getMovementType() == Entity.MovementType.QUAD) {            pilotRolls.addElement(new PilotingRollData(te.getId(), 0, "was kicked"));        }                phaseReport.append("\n");    }