Fixed the to-hit script