}
// check if all hips are operational
if (!ae.hasWorkingSystem(Mech.ACTUATOR_HIP, Mech.LOC_LLEG)
|| !ae.hasWorkingSystem(Mech.ACTUATOR_HIP, Mech.LOC_RLEG)
|| (ae.entityIsQuad()
&& (!ae.hasWorkingSystem(Mech.ACTUATOR_HIP, Mech.LOC_LARM)
|| !ae.hasWorkingSystem(Mech.ACTUATOR_HIP, Mech.LOC_RARM)))) {
return new ToHitData(TargetRoll.IMPOSSIBLE, "Hip destroyed");
}
// check if attacker has fired leg-mounted weapons