>>28844373in gen 5, the XP you got depended on your level and your opponent's
If you had a lower level, you got bonus XP. if you were the same, you got the normal XP, if your level was higher, you got less.
This system would greatly reduce the over leveling that the XY Share caused.