fixed smartcast

smartcast condition fixed for /castrandom