From f858cfc60235a5cfb86dd2a2c510dde5e130a4bf Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 6 Nov 2009 13:37:03 -0600 Subject: Move checks for the berserk state into actor::berserk(). --- crawl-ref/source/monstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 79c535e69c..c5722b2121 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1377,7 +1377,7 @@ int monster_die(monsters *monster, killer_type killer, } // From time to time Trog gives you a little bonus. - if (killer == KILL_YOU && you.duration[DUR_BERSERKER]) + if (killer == KILL_YOU && you.berserk()) { if (you.religion == GOD_TROG && !player_under_penance() && you.piety > random2(1000)) -- cgit v1.2.3-54-g00ecf