summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 7b92068049..aad322f3c9 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3640,12 +3640,18 @@ void read_scroll(void)
break;
case SCR_MAGIC_MAPPING:
- id_the_scroll = magic_mapping(50, 90 + random2(11));
-
- if ( id_the_scroll )
- mpr("You feel aware of your surroundings.");
+ if (you.level_type == LEVEL_PANDEMONIUM)
+ {
+ if (!item_type_known(scroll))
+ {
+ mpr("You feel momentarily disoriented.");
+ id_the_scroll = false;
+ }
+ else
+ mpr("Your Earth magic cannot map Pandemonium.");
+ }
else
- mpr("You feel momentarily disoriented.");
+ id_the_scroll = magic_mapping(50, 90 + random2(11), false);
break;
case SCR_TORMENT: