for (int i = 0; i < ae.getNumberOfCriticals(wlocation); i++) {
CriticalSlot slot1 = ae.getCritical(wlocation, i);
if ((slot1 == null) || (slot1.getType() != CriticalSlot.TYPE_SYSTEM)) {
continue;
}
Mounted mounted = ae.getEquipment(slot1.getIndex());
if (mounted.equals(weapon)) {
ae.hitAllCriticals(wlocation, i);
break;
}
}
vPhaseReport.addAll(server.damageEntity(ae, new HitData(wlocation), wtype.getDamage(), true, DamageType.NONE, true));