update attack type