The man who has planned badly, if fortune is on his side, may have had a stroke of luck; but his plan was a bad one nonetheless.
or simply: