From 5e2a066edadc68b45dc059caeda917a856cc150d Mon Sep 17 00:00:00 2001 From: Pawkkie <61265402+Pawkkie@users.noreply.github.com> Date: Sat, 3 May 2025 04:48:30 -0400 Subject: [PATCH] Add AI_FLAG_PP_STALL_PREVENTION to `ai_flags.md` (#6756) --- docs/tutorials/ai_flags.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/tutorials/ai_flags.md b/docs/tutorials/ai_flags.md index d0ff706143..b842f7cee4 100644 --- a/docs/tutorials/ai_flags.md +++ b/docs/tutorials/ai_flags.md @@ -179,3 +179,6 @@ AI will determine whether it would switch out in the player's situation or not, ## `AI_FLAG_PREDICT_INCOMING_MON` This flag requires `AI_FLAG_PREDICT_SWITCH` to function. If the AI predicts that the player will switch, this flag allows the AI to run its move scoring calculation against the Pokémon it expects the player to switch into, instead of the Pokémon that it expects to switch out. + +## `AI_FLAG_PP_STALL_PREVENTION` +This flag aims to prevent the player from PP stalling the AI by switching between immunities. The AI mon's move scores will slowly decay for absorbed moves over time, eventually making its moves unpredictable. More detailed control for this behaviour can be customized in the `ai.h` config file.