if (wtype.isCapital()) {
weapDamage *= 10;
}
for (Mounted m : getWeaponBayList()) {
BayWeapon bay = (BayWeapon) m.getType();
int damage = bay.getRoundShortAV() + weapDamage;
if ((bay.getAtClass() == wtype.getAtClass()) && (m.getLocation() == loc) && (m.isRearMounted() == rearMount) && (damage <= 700)) {
return m;
}
}
return null;