There was an error while loading. Please reload this page.
Added a better explanation of AI_Redundant
Added note that not all move effects need a Smart routine
Small rephrasings
Slightly optimized weather encouragement code
Added link to "Add a new AI layer" to "see also" section
Fixed broken link
Added note about pull requests
Added explanation of Falkner's AI being used for the Battle Tower
Added explanation of `AIDiscourageMove`, plus minor rephrasings elsewhere
jr c instead of nc
Corrected explanation of AI_Smart_Sleep
Extra sentence
Added warning about annoying the player
Added link to optimization page
Nitpick
Added explanation for how to restructure `AI_Risky` to check for a single move effect instead of a list of them
Added "see also" links to other tutorials
Spelling correction
Nitpick + new explanation sentence
Added Substitute check to `AI_Redundant` for Leech Seed and Confusion moves
Added missing link in step 9
Added new step for replacing unnecessary sleep check with Leech Seed Grass immunity check
Rephrased added explanation from previous commit
Added more explanation about AI item use fix
Correct `AI_NONE` to `NO_AI`
Swapped steps 5 and 6 with small edits for flow
Added discouragement for stat-down moves if player has Mist or Substitute
Created Improve the enemy trainer AI (markdown)