yamp\'s ghost type judgment