Made some significant overhauls to item AI to ensure trainers will use items more intelligently, such as considering useful status effects before spamming status cure items.
Fixed AI trainers prioritizing Full Restores in situations where they shouldn't.
Made the AI less likely to want to use stat-boosting items on a battler if that battler already knows a move that can raise the same stat that item would boost.
Implemented new functionality that allows an AI trainer to "remember" if they used an item on the previous turn.
AI trainers will be discouraged from using items on a particular Pokemon if they already used an item on that same Pokémon on the previous turn.