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.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index d614bc768c..8113033a6b 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2836,6 +2836,12 @@ bool remove_ring(int slot, bool announce)
return (false);
}
}
+ else if (!check_warning_inscriptions(you.inv[you.equip[hand_used]],
+ OPER_REMOVE))
+ {
+ canned_msg(MSG_OK);
+ return (false);
+ }
if (you.equip[EQ_GLOVES] != -1
&& item_cursed( you.inv[you.equip[EQ_GLOVES]] )