What type of bug are you reporting? Mechanics
What is the bug?
Pokemon with Illusion that Mega Evolve keep the Illusion and it cannot be broken.
When KOing the Illusion-ed pokemon, the error appears.
Original Replay
Are you able to replicate it? If so, how?
Yes, use a Pokemon holding its Mega Stone whilst having Illusion. Mega Evolve, then KO the mega evolved Pokemon.
seen here: Testing Replay
What is the bug?
Pokemon with Illusion that Mega Evolve keep the Illusion and it cannot be broken.
When KOing the Illusion-ed pokemon, the error appears.
TypeError: Cannot read properties of null (reading 'removeVolatile')
at Battle.runMinor (https://play.pokemonshowdown.com/js/battle.js?0.4845945808334662:2460:9)
Original Replay
Are you able to replicate it? If so, how?
Yes, use a Pokemon holding its Mega Stone whilst having Illusion. Mega Evolve, then KO the mega evolved Pokemon.
seen here: Testing Replay