https://www.pokecheck.org/?bid=495431160175&text
Flame Body and Dragon Tail Interaction, turn 18
Flame body inflict calc rand(100) happens after the forceswitch call rand(alive-onfield=2), which is the opposite of what happens ingame (flame body should be before forceswitch). Rest is desynced due to this.
props to wildeep for helping deduce, and battle# via religiousjedi