po-devs/pokemon-online — pull request #1025 by Fuzzysqurl (2014-02-24 01:55:04+00:00)
Title: 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.