diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 02:44:15 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 02:44:15 +0000 |
commit | 26953d285fcf4e720115ed26a24c0c8dee23b675 (patch) | |
tree | 31ffbc18a853dae0f2fe7f8246e1a9c542aa7b0e /crawl-ref/source/fight.cc | |
parent | 7bf26e5c3d35fb8e6238e7bfcb83adb32fe86522 (diff) | |
download | crawl-ref-26953d285fcf4e720115ed26a24c0c8dee23b675.tar.gz crawl-ref-26953d285fcf4e720115ed26a24c0c8dee23b675.zip |
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
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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); } |