NEW YORK >> Donald Trump won’t face the corporate death penalty after all.

A New York judge on Friday spared the ex-president that worst case punishment as he ruled in a civil case alleging Trump fraudulently misrepresented financial figures to get cheaper loans and other benefits.

Still, Trump got slammed hard, facing big cash penalties, outside supervision of his companies and restrictions on his borrowing.

In a pretrial ruling last year, the same judge threatened to shut down much of the Republican presidential front-runner’s business by calling for the “dissolution” of corporate entities that hold many of his marquee properties. That raised the specter of possible fire sales of Trump Tower, a Wall Street skyscraper and other properties.

But New York Supreme Court Judge Arthur Engoron called off the dissolution.

Instead, he said the court would appoint two monitors to oversee the Trump Organization to make sure it doesn’t continue to submit false figures.

“It’s a complete reversal,” said real estate lawyer Adam Leitman Bailey. “There’s a big difference between having to sell your assets and a monitor who gets to look over your shoulders.”

In his ruling, Engoron banned Trump from serving as an officer or director in any New York corporation for three years, prohibited him from taking out loans with New York banks and said his company and other defendants have to pay hundreds of millions of dollars in fines.

Here is how the decision is likely to impact his business:

Cash drain

This is possibly the worst hit from the ruling.

Trump and his businesses were told they would have to pay $355 million for “ill gotten gains.” Trump’s sons, Eric and Donald Trump Jr., who help run the business, were ordered to pay $4 million each. Trump’s former chief financial officer was ordered to pay $1 million, for a total judgment of $364 million.

“I don’t think there is any way Trump can continue to operate his business as usual,” said Syracuse University law professor Gregory Germain. “It’s a lot of money.”

The penalties will slam Trump’s finances at a moment he is facing other steep legal bills stemming from several criminal cases. Trump separately was hit with $88 million in judgments in sexual abuse and defamation lawsuits brought by writer E. Jean Carroll.

It gets worse.

Trump is also required to pay interest from the dates when he received benefits from his alleged fraud. That so-called pre-judgement interest adds another $100 million to Trump’s bills, according to New York’s attorney general.

But don’t expect him to dig into his pocket anytime soon.

Trump lawyers have said they will appeal. That means he won’t have to hand over the whole amount yet, though he will have to post a bond or escrow, which could tie up cash while waiting for the appeal.

In any case, Trump already has enough in cash to pay much of that penalty, assuming he is telling the truth about his finances. In a deposition in the fraud case, he said he had more than $400 million in cash.

No Trump property fire sale

The judge’s summary ruling in September was vague in exactly what he meant by a “dissolution” of Trump businesses. But several legal experts told The Associated Press that in the worse case it could have led to a sale of not only of his New York properties, but his Mar-a-Lago club in Florida, a Chicago hotel and condo building, and several golf clubs, including ones in Miami, Los Angeles and Scotland.

One of Trump’s lawyers, Christopher Kise, called that potential outcome a “corporate death penalty.”

Not even the New York attorney general, who filed the lawsuit against Trump, had asked for a “dissolution.”

An Associated Press investigation confirmed how unusual such a punishment would have been if carried out: Trump’s case would have been the only big business in nearly 70 years of similar cases shut down without a showing of obvious victims who suffered major financial losses. The main alleged victim of the real estate mogul ‘s fraud, Deutsche Bank, had itself not complained it had suffered any losses.