Fix Sleep Talk + Mimic glitch

No idea why the gen variable was always set to return the max gen, but that forces older gens to have newer gen mechanics.