All the Warriors wanted to do over these final two games was avoid an injury to one of their important players.

That goal might have been squashed in the first quarter Tuesday night against the Pelicans.

Late in the first quarter, Steph Curry tried to make a move at the top of the 3-point arc and rolled his right ankle.

After examination, the Warriors diagnosed Curry with a mild right foot sprain and ruled him out for the remainder of the game for precautionary reasons.

Curry stayed down for a moment after rolling his ankle, then he got back up and adjusted his ankle brace. He was able to walk to the bench on his own power.

[RELATED: Which team is the biggest threat to the Warriors?]

After the timeout, Curry briefly re-entered the game, but he left shortly after that and was seen walking back to the Warriors' locker room.

This is the last thing the Warriors need right now, with the NBA playoffs set to begin this weekend.