Fixing a minor bug that caused errors in wild battles.
The script now takes into account trainer skill level.
High Skill Trainer - waits until they are down to one Pokémon, then revives the fainted Pokémon with the best type advantage and highest stats.
Medium Skill Trainer - waits until half the party is fainted, then revives the fainted Pokémon with the highest stats.
Low Skill Trainers - revive the first Pokémon that faints.
If you previously installed the script, just re-copy the code in the spoiler and paste it over the old code.