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.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index af1c6906c5..ad37d5f351 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1134,6 +1134,12 @@ bool takeoff_armour(int item)
return false;
}
+ if (you.duration[DUR_BERSERKER])
+ {
+ canned_msg(MSG_TOO_BERSERK);
+ return false;
+ }
+
if (item_cursed( you.inv[item] ))
{
for (int loopy = EQ_CLOAK; loopy <= EQ_BODY_ARMOUR; loopy++)
@@ -3533,6 +3539,12 @@ bool _drink_fountain()
return false;
}
+ if (you.duration[DUR_BERSERKER])
+ {
+ canned_msg(MSG_TOO_BERSERK);
+ return false;
+ }
+
potion_type fountain_effect = POT_WATER;
if ( feat == DNGN_FOUNTAIN_BLUE )
{