Luther didn't have a problem with indulgences. He had a problem with the corruption of the doctrine.
Luther only came to his realization on sola fide, sola scriptura, etc. when he decided he wanted to start his own church, realized he had no authority, and so created some doctrines that would let him claim authority.
I am neither Catholic nor Protestant.
Nor are you a historian.