UNDATED (AP) — Twelve players and at least three draft picks are part of a four-team trade that was hammered out on the eve of the NBA trade deadline.

Robert Covington is going to the Houston Rockets and Clint Capela is going to the Atlanta Hawks as part of the complicated trade that was approved by the league on Wednesday.

The Rockets got Covington and Jordan Bell from Minnesota, plus Golden State’s 2024 second-round pick from the Hawks. Atlanta received centers Capela and Nenê (neh-NAY’) from Houston. Denver picked up Gerald Green from Houston along with the Rockets’ 2020 first-round pick. The Nuggets also landed Keita Bates-Diop, Shabazz Napier and Noah Vonleh (VAHn’-lkay) from Minnesota. The Wolves came away with Brooklyn’s 2020 first-round pick and Evan Turner from Atlanta, plus Malik Beasley, Jarred Vanderbilt and Juancho Hernangomez (WAHN’-choh hur-nahn-GOH’-mehz) from Denver.