With the game clock ticking down, Heat coach Erik Spoelstra thought about calling a timeout and taking the ball out of LeBron James’ hands.

Instead, Spoelstra let it ride. It was a good decision.

With the Heat trailing by two points, James eyed the basket from above the left break and let time drip down to nothing. Then he stepped back, elevated over Warriors defender Andre Iguodala and won the game. James’ 27-footer went down with one-tenth of a second remaining on the clock and the three-pointer gave the Heat a 111-110 victory against Golden State at always-ear-popping Oracle Arena.

“I made a tough shot,” James said.

That’s one way to put it.

Heat forward Shane Battier, who majored in theology at Duke University, wasn’t so understated.

“He just wanted to let it be known that there is a god,” Battier said. “That’s what that was. There is proof in the existence of a god. That guy over there is not by mistake — not by some cosmic mistake. That is part of a grand design somewhere.

“That’s my small religious theory for the evening.”

The dramatic victory came with Dwyane Wade out of action for the second straight evening. After missing Tuesday’s game with a migraine headache, Wade was a late scratch on Wednesday after his foot went numb before the game.

“It was bizarre stuff,” Wade said. “I started feeling a little something in my foot, getting a little numb before the game, but you don’t think nothing of it. Then as time went on it started going up my leg a little bit, so the nerve of my leg kind of shut down.”

Wade called the condition “drop foot.” Despite the scary incident, he said his plan was to travel to New Orleans for the All-Star weekend and attempt to play in Sunday’s game. Wade has several charity events also schedule for this weekend.

With Wade out, James carried the load offensively for the second straight night and finished with 36 points. He was 14 of 26 from the field, 4 of 8 from three-point range and 4 of 7 from the free-throw line. He also had 13 rebounds and nine assists, falling one assist shy of his first triple-double of the season.