AI server: now makes use of byMagicAttack. Also removed a bunch of unused methods.