added random attack type