Add input->attack logic