Guy was having "rituals" with Hiro so that he wouldn't be unlucky anymore but the unluckiness was coming from him. He's was doing sorcery to get sex from a high schooler. Also who discovers this is the lucky guy. Ending is resolved with the main character without so much unluckiness and the lucky guy together!
The Good Luck Story of an Unlucky Guy