The old saying goes that it’s all fun and games until someone gets hurt.

That’s exactly what happened to the man who plays Miami Heat mascot “Burnie,” as he had to go to the emergency room Friday night after twice getting punched by UFC star Conor McGregor during an on-court bit during Game 4 of the NBA Finals, according to a report.

The man who plays Burnie, according to The Athletic, received pain medication, was sent home and is doing well.

As part of the skit, Burnie, who was dressed in a fighter’s robe and large gloves, moved toward McGregor at midcourt in a fighting stance. McGregor, who was promoting a pain relief spray, then floored Burnie with a left hook and then landed a straight punch to the face of the mascot’s headgear as Burnie was lying face-up on the floor.

McGregor, the first fighter in UFC history to hold simultaneous championships in two different weight classes, is currently serving as a coach in Season 31 of “The Ultimate Fighter” reality television show.

McGregor has not competed since breaking his left leg in a fight with Dustin Poirier in July 2021.

The Heat will attempt to avoid getting knocked out by the Denver Nuggets, who can clinch the NBA championship in Game 5 of the best-of-seven series on Monday night (8:30 p.m. ET, ABC).