Mega Evolution Help

Hey, If anyone could help me real quick, I'm experimenting with Mega Evolution on 17.2 and I'm using EBS, but for some reason, when I give an opponent trainer's pokemon a mega stone, the animation doesnt play and their pokemon's sprite doesnt change to the mega evolution. Everything works fine for the player's megas tho. Any help would be greatly appreciated. If it helps clarify i can also record a quick video to show whats going on.