as a final precaution , packets were created and sealed into the brickwork all along the walls of his prison that would continually zap his internal power , leaving him able to function as a normal person , but unable to build up the energy necessary to cast even the smallest spell .