OAKLAND, Calif.—All-Star guard Dwyane Wade was a late scratch from the Miami Heat's starting lineup against the Golden State Warriors on Wednesday night because of a sore left foot.

Wade sat out Tuesday night's win at Phoenix with a migraine headache and appeared to be in good spirits before Miami's game in Oakland, chatting with reporters for nearly 10 minutes in the locker room. He was listed at his usual shooting guard spot and announced during pregame introductions, but seconds before tipoff the Heat said he would not play.

Toney Douglas, who was traded from the Warriors to the Heat earlier this season, made his second straight start for Miami. It was the final game before the All-Star break for both teams.

Before the Heat played the Warriors, Wade said he planned to play in Sunday's All-Star game in New Orleans.

On Tuesday, Wade said he woke up with a "pounding, pounding headache" after taking an afternoon nap in Phoenix and alerted trainers. He said he took medication and stayed back at the team hotel, listening to the game against the Suns in a dark room because the bright lights from the TV were bothering him.

The Heat beat the Suns 103-97.

Wade said he experienced another strong headache after the team's flight landed in the San Francisco Bay Area and took medicine that "knocked me out." He said he woke up Wednesday morning feeling normal.

The 32-year-old Wade has experienced migraines at times throughout his career. He's averaging 18.7 points, 4.8 rebounds and 4.7 assists in 36 games this season.

"If you've never experienced it before, you really don't understand," Wade said. "There's just no rhyme or reason for it."