From 26953d285fcf4e720115ed26a24c0c8dee23b675 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 2 Jul 2008 02:44:15 +0000 Subject: Since hostile monsters aren't supposed to violate sanctuary, move the message for it into a DEBUG_DIAGNOSTICS #ifdef. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6317 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index d2d9698d88..1cf14969b4 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -3132,11 +3132,15 @@ bool melee_attack::mons_attack_mons() if (you.pet_target == MHITYOU || you.pet_target == MHITNOT) { if (atk->confused() && you.can_see(atk)) + { mpr("Zin prevents your ally from violating sanctuary " "in its confusion.", MSGCH_GOD); + } else if (atk->has_ench(ENCH_BERSERK) && you.can_see(atk)) + { mpr("Zin prevents your ally from violating sanctuary " "in its berserker rage.", MSGCH_GOD); + } cancel_attack = true; return (false); @@ -3145,7 +3149,10 @@ bool melee_attack::mons_attack_mons() // Non-friendly monsters should never violate sanctuary. else { - mpr("!!!! Preventing hostile violation of sanctuary"); +#ifdef DEBUG_DIAGNOSTICS + mpr("Preventing hostile violation of sanctuary.", + MSGCH_DIAGNOSTICS); +#endif cancel_attack = true; return (false); } -- cgit v1.2.3-54-g00ecf