Call setAttacked even if the attack missed. Unsuccessful hits should also evoke a response.
Fix a confusing variable name
Restore fix for Bug #875 (commit 602be9bbe7f2, was broken by 43757efdc4af643)