response to mouse clicks for attacks