Zarel/Pokemon-Showdown — pull request #405 by TalkTakesTime (2013-10-18 22:51:10+00:00)
Title: Treat Mega formes as Gen 6 mons

This fixes Mega formes being allowed in gen 5 BH by ignoring their position in the pokedex and just checking their forme to determine if they are gen 6, instead of being in the same gen as their standard forme.