text: If the target permanent is an illegal target by the time Stroke of Midnight tries to resolve, the spell doesn't resolve. No player creates a Human token. If the target is legal but not destroyed (most likely because it has indestructible), its controller does create a Human token.