Wealth was not generated, prices rose. Those are valuations, they did not come out of the pockets of the workers. A wealth tax would suppress those prices, not to mention capital flight. It just does not work. If it did, everyone would do it.
If you have a 5% profit margin and the price doubles, so do your profits. Of course you could lower your profit margins and pass up on the opportunity of the decade.
Of course rising prices are an opportunity for producers, war or not. If war had devastated their profits, you wouldn't bat an eye.
Moreover, the prospect of profits is what gets the supply going in the first place. Many shortsighted politicians have proposed to instate price caps to curb "immoral" profits - which would make an actual shortage more likely. After all, some gas at a high price is better than no gas, at any price.
I am in fact not making your point. Your moral concerns are completely independent of whether your proposal would work. I'd be in favor of wealth tax if it worked. It doesn't work.