Improved attacking.

Now it only does a lot of checks at the end of the phase, so that things
like "cannot attack alone" work if two of them attack.