>>45422049This is true. I’ll use my 252 HP, 252 Def Runerigus with Leftovers as an example.
From my observation of fighting the likes of Peony and Mustard and Bea, Peony will only switch out his lead Pokemon, which is a Perrserker that conveniently knows U-turn, and if he sends out Aggron, it will stay there indefinitely because it knows a supereffective move. Mustard will switch his lead Mienshao after a few turns when all damage it tries to do has been recovered, but only that pokemon. The likes of Bea are, well, awkward, she’s clearly capable of switching any of her Pokemon, which she sometimes does with her Hawlucha, but when the Falinks come out, if she commands it to use No Retreat, she literally has no choice but to repeat No Retreat and Bulk Up because Close Combat doesn’t affect Runerigus and Rock Tomb is ineffective, because that status move conflicts with the switching out script.
In essence, the script doesn’t kick in until the pokemon sees it can’t do enough damage, and if it knows a supereffective move, it’ll stay around until it depletes its PP. If something prevents switching out, but the attack moves do no effect or are ineffective, the AI gets confused and will spam status moves until it depletes them, and then it uses the ineffective move, and then the poor thing will deplete the no effect move before finally using Struggle.