ok i found out where it is, and modified it to look like this
def pbOwnedByPlayer?(index)
return false if pbIsOpposing?(index)
return false if @player.is_a?(Array) && index==2
return false if @controlPlayer = $game_switches[76]==true
end
It works, but the problem is when a pokemon is...