Skip to content

Switch AI

Pawkkie edited this page Nov 13, 2023 · 1 revision

AI Flags:

  • AI_FLAG_SMART_SWITCHING
  • AI_FLAG_SMART_MON_CHOICES

Deciding Whether To Switch

ShouldSwitch

  • Order matters

Specific Party Members

ShouldSwitchIfWonderGuard

ShouldSwitchIfGameStatePrompt

FindMonThatAbsorbsOpponentsMove

Generic Party Members

CanMonSurviveHazardSwitchin

ShouldSwitchIfAllBadMoves

ShouldSwitchIfAbilityBenefit

HasBadOdds

ShouldSwitchIfEncored

AreAttackingStatsLowered

HasSuperEffectiveMoveAgainstOpponents

AreStatsRaised

FindMonWithFlagsAndSuperEffective

Deciding What Pokemon To Switch In

GetMostSuitableMonToSwitchInto

GetBestMonBatonPass

GetBestMonTypeMatchup

GetBestMonDmg

GetBestMonIntegrated