The state of North Carolina could repeal HB2, the discriminatory state law that’s cost the state high-profile sporting events and other opportunities, Thursday morning.

Late Wednesday, lawmakers introduced HB142, a bill that would replace HB2, and announced an agreement had been made. HB142 is to be voted on in the North Carolina state House and Senate on Thursday morning. Republicans and the new Democratic governor, Roy Cooper, are selling it as a compromise.

HB142’s primary reform: Schools would be exempt from state regulation of access to bathrooms, showers, and changing rooms.

The original law established statewide school and government building rules for those facilities. Specifically, it said they were only for members of specific sexes and that people needed to use facilities corresponding to the gender listed on their birth certificates.

LGBTQ advocacy groups say the repeal bill doesn’t go far enough. It prevents local governments from passing anti-discrimination ordinances in employment or “public accommodations,” like bathrooms.

NCAA President Mark Emmert spoke during his annual press conference on Thursday about the new legislation.

Mark Emmert: NCAA Board of Governors will determine whether HB2 repeal is "sufficient" change to return championships to North Carolina. — Stewart Mandel (@slmandel) March 30, 2017

ACC Commissioner John Swofford also released a statement on Thursday afternoon, and said that there is an opportunity to reopen discussing holding events in the state.

The new bill expires in December 2020, a few weeks after North Carolina’s next election for governor. If a Republican supporter of HB2 wins, the repeal could expire and HB2 could again be in effect. That’s possible either way.

“I support the House Bill 2 repeal compromise,” Cooper said. “It’s not a perfect deal, but it repeals House Bill 2 and begins to repair our reputation.”

Cooper beat Republican Pat McCrory, who’d signed HB2, in November’s election.

We’ll see what the NCAA has to say about the changes and whether they are enough to bring events back.

Comments given to The Raleigh News & Observer at noon on Tuesday, two days before the vote, showed the NCAA drawing a line in the sand after previously pulling seven 2016-2017 championship events.

“I have confirmed with a contact very close to the NCAA that its deadline for HB2 is 48 hours from now,” said Scott Dupree, who leads the Greater Raleigh Sports Alliance, which recruits NCAA and other sporting events. “If HB2 has not been resolved by that time, the NCAA will have no choice but to move forward without the North Carolina bids.

“The NCAA has already delayed the bid review process once and has waited as long as it possibly can, and now it must finalize all championship site selections through spring of 2022.”

NCAA reaffirms North Carolina championship stance. pic.twitter.com/2XqPodlQUP — Inside the NCAA (@InsidetheNCAA) March 23, 2017

Those were just a few of the many events the state missed out on.

The Associated Press estimated that the law will cost the state nearly $4 billion in lost business over 12 years, with affected industries including tourism, technology, and entertainment.

Other sporting events like the ACC football championship and NBA All-Star Game moved out of the state within the last year.

The ACC hasn’t committed to bringing its football championship back from Orlando. The NCAA has no jurisdiction over where conferences hold neutral-site championships.

The NCAA isn’t opposed to sticking to its guns.

The NCAA decided in 2001 to impose a ban on events in South Carolina, due to the state’s use of the Confederate flag. After the state’s capitol took down the flag in 2015, the NCAA returned, coincidentally when the men’s basketball tournament games that were supposed to be in North Carolina moved because of HB2. Greenville, South Carolina became the site of first- and second-round games, including Duke’s loss to the home-state Gamecocks.

“I don't want to take away from the great people of South Carolina and the people in Greenville. They deserve to host a tournament whether our state is smart enough or stupid enough not to have it,” Duke coach Mike Krzyzewski said during the tourney. “It shouldn't be a contest of one or the other. South Carolina is known for great basketball, and this is a great town. So we feel really good about being here. It would be nice if our state got as smart and also would host not just basketball tournaments but concerts and other NCAA events. But maybe we'll get there in the next century.”

The ACC is a separate entity from the NCAA, and several of its member schools supported the NCAA’s move.