Stopattack macro?

Omg why didn’t I ever think of trying that