AI: fix medic panic attacks

Medic bots previously would see a low-health ally, swap to their
medigun, then notice they were in combat, swap back to their offensive
weapon, and then keep doing that until they died.