According to the thinking
We have to understand that karma is formed in the same way as you feel it.
Two friends often used to go to a prostitute. One evening when they were going there, a saint's spiritual discourse was on the way. A friend said that he would like to hear the discourse. She decided to not go to prostitution every day that day. The second person went to the prostitute leaving the friend there.
Now the person who was sitting in the discourse was immersed in his friend's thoughts. Wondering what he would be enjoying and where I was sitting in this spot. My friend is more intelligent because he decided to go to the prostitute instead of listening to the discourse. On the other hand, the man who was sitting beside the prostitute was thinking that his friend has decided to sit in the discourse instead of choosing the path of liberation, while I am trapped myself in my craving.
The person sitting in the discourse thinks about the prostitute and brings bad deeds. Now she will suffer from it. You do not pay the price of wrong work because you go to prostitute here; You pay the price because you are smart. You want to go there, but think that by going into the discourse, you will become a paradise officer. This cleverness takes you to hell.
As you feel, you become just like you. Suppose you are accustomed to gaming. It may be that in front of your mother, wife or children in your home, you tell gambling poorly. Do not bring it to the mouth. But as soon as they meet their gang, the leaves begin to blow. Do the thieves think that it is bad to rob someone? When you fail to steal, they think that you are not a good thief. For them, he becomes a bad karma.
We have to understand that karma is formed in the same way as you feel it. It is not related to what you are doing.