When a person attacks you unexpectedly, you cannot have a plan in mind. You must simply respond and move appropriately. This is a condition that transcends intention.
Intention may be present insofar as you have no wish to be injured, but beyond that there is no fixed plan. The event happens and you are part of that happening.