Fixed a bug where a Unit could choose a weapon that was unable to fire at the target's UnitType.