ORLANDO, Fla. — Dwight Howard and the Charlotte Hornets needed a win heading into the All-Star break.
So it was perfect timing for a trip to Orlando.
Howard had 22 points and 13 rebounds, and the Hornets stopped a four-game slide by topping the lowly Magic 104-102 on Wednesday night.
Kemba Walker had 20 points for Charlotte on 6-for-19 shooting. Nicolas Batum added 14 points and seven assists in the Hornets' 10th straight win against the Magic.
"We needed this game," Howard said. "Players know the All-Star break is coming so they kind of take a break and are not focused on the game before the break. We had to come out with the right mentality."
Mario Hezonja led Orlando with 21 points and 10 rebounds, but the Magic lost their third straight. D.J. Augustin and Marreese Speights had 16 points and Bismack Biyombo finished with 11 points and 11 rebounds.
Orlando led 97-96 before Walker hit a 3-pointer with 1:12 to play. Batum hit another 3-pointer with 11 seconds left to stretch Charlotte's lead to 102-97.
The teams traded free throws and Speights hit his fourth 3-pointer as the buzzer sounded.
"This was a huge win," said Walker, who believes the Hornets can still make a late run for a playoff berth. "This gets us one game closer. I know we say take them one at a time, but this is huge coming right before the break."
Orlando made only four of its last 21 shots. Augustin and Evan Fournier both missed 3-point attempts in the final minute that could have put the Magic back in front.
"They made their last two shots and we didn't," coach Frank Vogel said.
Fournier had 13 points, but he didn't score in the second half.
"This is disappointing, really disappointing," he said. "This team (Charlotte) has given us a lot of problems the last few years and not being able to win before the break just does not feel good."
Hornets: Walker made a four-point play with 32 seconds left in the first half. ... Howard has 702 career double-doubles, most of any active player in the NBA.
Magic: Jonathon Simmons didn't start the second half, but returned to the game three minutes into the third quarter. ... Orlando is 2-9 in its last 11 home games against Charlotte. ... Augustin broke out of a 1-for-8 shooting slump from 3-point territory, going 4 for 6 from long range.
Hornets: Host Brooklyn next Thursday. Charlotte has won four straight at home against the Nets.
Magic: Host the New York Knicks next Thursday.