They weren't at all.Activision could of gone bankrupt in the next couple of years
Activision Blizzard King revenue in Billions (every bar is a year):
Their net revenue:
MS bought them because they wanted for them the money ABK makes, including the one they make in PS and Nintendo.
MS knows they'll make more way money getting (in most cases the "70%", in a tiny minority 100%) of games and addons sold to many hundreds of millions of players in all platforms than getting 100% of the tiny sales they make in their unsuccessful console + the "30%" cut they get from 3rd party.
They knew they lost their battle against Sony as high end console platform holders, so slowly moved their focus since many years ago to become a multiplatform publisher with Windows as main platform, and also trying to -unsuccessfully- dominate the game subs or cloud gaming markets.