summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 11:29:17 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 11:29:17 +0000
commit8a7f4ec404cbbb329622a85c56886749af1b7af4 (patch)
tree6358a9d65e90407e05cc5a776841fe7437eb5085 /crawl-ref/source/player.cc
parent2a26233126e10117267fc9393539af56f66b0116 (diff)
downloadcrawl-ref-8a7f4ec404cbbb329622a85c56886749af1b7af4.tar.gz
crawl-ref-8a7f4ec404cbbb329622a85c56886749af1b7af4.zip
Implement [2480452] following dpeg's suggestion:
You can't go berserk while mesmerised; being berserk provides immunity to mesmerisation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8880 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 22ea31ecc9..8fae69b5f7 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6573,7 +6573,14 @@ bool player::can_go_berserk(bool verbose) const
{
if (verbose)
mpr("You're too exhausted to go berserk.");
+ // or else they won't notice -- no message here
+ return (false);
+ }
+ if (you.duration[DUR_MESMERISED])
+ {
+ if (verbose)
+ mpr("You are too mesmerised to rage.");
// or else they won't notice -- no message here
return (false);
}