Try to avoid a whole bunch of divide by zeroes with the AI.
Merge remote-tracking branch 'fluffy/fix-ai-divzero'