po-devs/pokemon-online — pull request #1137 by SongSing (2014-05-01 22:09:05+00:00)
Title: Corrected Imposter mechanics

From Bulbapedia:
In Double and Triple Battles, Imposter will copy the opponent in the position directly opposite it. If there is no opponent directly opposite to it, it will not transform.

Made it so Ditto transforms into the poke it's facing, and made it so it doesn't transform if there's no poke there.