From 8a7f4ec404cbbb329622a85c56886749af1b7af4 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 3 Feb 2009 11:29:17 +0000 Subject: 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 --- crawl-ref/source/player.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/player.cc') 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); } -- cgit v1.2.3-54-g00ecf