Added code for attack reactions.

Note: this is not tested at all beyond making sure it compiles. I just
won't have access to this machine over the weekend and I don't want to
lose my changes.