summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 6f44616de8..29715af093 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -4099,8 +4099,7 @@ bool melee_attack::mons_attack_mons()
mpr("Zin prevents your ally from violating sanctuary "
"in its confusion.", MSGCH_GOD);
}
- else if (attacker_as_monster()->has_ench(ENCH_BERSERK)
- && you.can_see(attacker))
+ else if (attacker->berserk() && you.can_see(attacker))
{
mpr("Zin prevents your ally from violating sanctuary "
"in its berserker rage.", MSGCH_GOD);