Karma is the result of your own actions. If you do something good then you would get the same in return and vice versa. Karma never forgets to play its game so beware of it. Karma never likes to loose. Rather than loosing yourself, try to make it a tie.
Law of Attraction is a simple law which works on your belief and willpower. You are the creator of yourself. You get what you attract towards yourself no matter what it is.