Tweak to validatenumberofweaponattributes