Prevent Illusion in last on a random team

Illusion loses viability when it's on a Pokemon that's last on a team
Merge pull request #813 from Relados/patch-52

Prevent Illusion in last on a random team