modify advanced factory requirements and attack counters

- allow building outmoded attackers if there's tons of metal
- prevent building two advanced cons immediately, but build more than
two
- change ai.couldAttack and ai.hasAttacked to reset after every non-air
factory
- change ai.couldBomb and ai.hasBombed to reset after every air factory
- decrease advanced factory requirements
- fix bug of not defending anything but commander