>>98272269>>98272049Depends on the game, but sometimes the AI can be very wierd.
Like gen 1 some trainers were "smart" and would prioritize super effective moves. (But they weren't coded to see if said move does damage)
Later games, when your health is low they settle on priority moves if it'll kill or just a random move.