summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 4165023a5e..88186883c4 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2452,7 +2452,8 @@ bool is_dangerous_item(const item_def &item, bool temp)
case OBJ_BOOKS:
// The Tome of Destruction is certainly risky.
- return (item.sub_type == BOOK_DESTRUCTION);
+ return (item.sub_type == BOOK_DESTRUCTION
+ || is_dangerous_spellbook(item));
default:
return (false);