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.