modified quest clear logic