What type of bug are you reporting? Random Battles
What is the bug?
https://replay.pokemonshowdown.com/gen9superstaffbrosultimate-2118751888-iqdlwvrnknpvb334myt0fft942l4gxspw
Battle continued on for two turns after last Pokemon died
Are you able to replicate it? If so, how?
Maybe but...