It's a bug with the way certain moves decide who the enemy will target