Start of turn 13 Jules called Swampert back! Jules sent out Alakazam! The foe's Athena used Substitute! The foe's Athena made a substitute! The foe's Athena restored a little HP using its Leftovers! Start of turn 14 Alakazam used Encore! The foe's Athena received an encore! The foe's Athena can't use Air Slash because of Encore! this should have been The foe's Athena used Substitute! as this was the last move used before encore. The foe's Athena restored a little HP using its Leftovers!
I need some extra info. For example, if the guy is affected with Torment (or disable taunt or w/e), I am faster than him and encore him, does he struggle or still switch automatically to the encored move? Thanks.
There's also another bug regarding encore: http://pastebin.com/7YZPQ5U4 On line 57, Drattak's substitute from previous turn should been encored, but Jumpluff's encore failed instead.
I think the Tormented and Encored Pokemon should struggle... (checks it out in-game) ... and I am completely wrong. The Encored move is used that turn, and the Encored Pokemon will Struggle the turn after that. (aimed at coyotte's mentioned situation)