I might not have worded it very well, but I gave Octolock to a wild Pokemon to try it out, it used the move on me, and I was still able to switch out and run away, and I was the one the move was used on.
Inside 'def pbCanRun?(idxPokemon)' change the old code to this new one:
Code:
return false if thispkmn.effects[PBEffects::OctolockUser]>=0
Do the same in 'def pbCanSwitch?(idxPokemon,pkmnidxTo,showMessages,ignoremeanlook=false)':
Code:
if thispkmn.effects[PBEffects::OctolockUser]>=0
pbDisplayPaused(_INTL("{1} can't be switched out!",thispkmn.pbThis)) if showMessages
return false
end
Edited the main post.
P.S: But I still need more details like the official phrases when the player tries to switch the pokémon; while double battle if the player can flee (while wild battle) if some of their pokémons are "Octolocked".