A traveling scholar becomes entangled with a vengeful female spirit during his journey to take the imperial exams.