Prevent sleeping or paralysed unicorns from catching gems. Fixes C343-115.

Includes modifications by Bulwersator, original available at https://github.com/sgrunt/GruntHack/commit/b977028350449cdbcd3b90292de637e9a92d9c77