Almost everything went wrong for the Magic to start Tuesday’s NBA Cup quarterfinal against the Heat inside Kia Center.

First, Orlando was unable to use its custom grey court designed specifically for the league’s in-season tournament and instead had to play on its regular parquet court after the Cup version was damaged in storage.

Then, once the game started, Miami jumped out to a 15-0 lead and later held a game-high 16-point advantage, 18-2, over the Magic within the first four minutes.

Even the shot clocks located above the baskets malfunctioned late in the opening frame, which required the team’s new public-address announcer to share over the speakers in the arena when the sides only had 10 seconds to shoot and countdown from five.

Eventually, the shot clocks were fixed. The ball began to move. And the Magic made a run.

Orlando completed its double-digit comeback against its in-state rival, 117-108, by outscoring Miami 100-78 over the course of the final three quarters after falling behind 30-17 in the first 12 minutes.

With fight and tenacity, Jamahl Mosley‘s squad gave the fans wearing blue inside Kia Center something to cheer for after an abysmal start.

“They are absolutely awesome,” Mosley said of Orlando fans. “The way they willed us to get this game done … You heard in the beginning of the game some Miami chants, and then the ‘Orlando Magic’ chants started to go and our guys (got) going with that.

“I don’t think our fans really realize how important they are to us on this homecourt and what they mean to this group,” he added.

The player the Magic fans specifically got going was Desmond Bane.

The Orlando guard notched 35 of his 37 points across the final three quarters (including 15 in the fourth), made a season-high six 3-pointers (on nine attempts) and added six rebounds, five assists with a steal in 38 minutes.

He became the first Magic player to record three 35-plus point games in a six-game span since Hall of Famer Tracy McGrady did so in 2004, according to NBA.com. Bane’s 37 points tied Milwaukee’s Giannis Antetokounmpo for the fourth-most scored in a Cup knockout rounds game, the league said.

It was the type of performance that the Magic were expecting from him when they traded Cole Anthony, Kentavious Caldwell-Pope and multiple future first-round picks to the Grizzlies to acquire Bane over the summer.

“I said it when he first got here, I’m so impressed with him as a human being, as a man, that you can see how he handles anything that happens to him,” Mosley said about Bane. “He doesn’t get rattled by outside noise. He stays the course. He pours into his teammates. He continues to lead. He uses his voice when he needs to.

“And then on the court, he’s a dawg of a competitor,” Mosley added. “He just finds ways.”

Bianchi: We mocked NBA Cup, but then Magic vs. Heat happened!

Similar to Tuesday’s game, Bane and the Magic have found their way throughout the first quarter of the season.

After a 1-4 start, Orlando has since gone 14-6, winning 70% of its games played after the first five, with Bane averaging almost 8 more points per game in the last 10 games compared to the first 10 (22.1 points vs. 14.2).

The Magic (15-10) rose to No. 4 in the East with their 15th win of the season and now begin preparations for another familiar foe: the No. 2 Knicks.

New York (17-7) won the other Cup quarterfinal played Tuesday night against Toronto and will meet Orlando on Saturday at T-Mobile Arena in Las Vegas for the semifinals.

Each player on a team that loses in the semifinals takes home $106,187 from the Cup prize pool. That number increases to $212,373 for the players on the team that loses in the championship.

But Orlando isn’t traveling to Vegas to come up short of the Cup trophy or the top cash prize. Each player on the team that wins in the championship earns $530,933.

“I just lost $35,000 so I’ve got to go get it back somehow,” Bane said with a grin on his face,  referring to the fine he received from the league Monday for “throwing the ball with force at an opponent in an unsportsmanlike manner,” according to the NBA.

That opponent? The same one the Magic will face in Vegas, of course: OG Anunoby and the Knicks, who beat Orlando by 6 points on Sunday inside Madison Square Garden when Bane threw the ball down on the New York forward in the fourth quarter.

The game out west not only counts toward the Cup but also the regular-season standings. Only the Cup final doesn’t impact teams’ regular-season records.

Because Orlando and New York are meeting for a fourth and final time in the regular season Saturday, the result will have a lasting impact, too.

The Magic can clinch the regular-season series over the Knicks after they won the first pair of matchups against them. That type of head-to-head advantage can hold weight come April’s playoff race.

But the Magic know sometimes it’s not about how you start, it’s about how you finish.

“Everybody wants to win,” Bane said of his teammates. “That’s the beauty about this team. It’s a lot of selfless guys just want to win.

“And we’ll do whatever it takes to do that.”

Jason Beede can be reached at jbeede@orlandosentinel.com

Up next …

Magic vs. Knicks, NBA Cup semifinals

When: 5:30 p.m., Saturday, T-Mobile Arena (Las Vegas)

TV: Prime Video