After some more testing, the issue only happens on single battles. Double battles are fine, and exp is given for other participating pokemon.
Después de realizar más pruebas, el problema solo ocurre en batallas individuales. Las batallas dobles están bien y se otorga experiencia a los demás...