added missing repair at the end of an attack sequence