diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2011-04-07 22:38:42 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2011-04-07 22:42:03 +0100 |
commit | d1078098a0716d2bd9fa7135fed5c0f2cbda3284 (patch) | |
tree | eb928d4a8fe1b476203191881242eee19d12a37e /crawl-ref/source/attitude-change.cc | |
parent | d39ed3739412dd2d0baad7839c94b31bd1c412e1 (diff) | |
download | crawl-ref-d1078098a0716d2bd9fa7135fed5c0f2cbda3284.tar.gz crawl-ref-d1078098a0716d2bd9fa7135fed5c0f2cbda3284.zip |
Only let holies which can speak say things when converted
This fixes monsters such as Pearl Dragons, Apises, Shedu etc speaking
to you when they turn neutral, but unfortunately doesn't fix Mennas yet
as he has M_SPEAKS for his visual speech.
Diffstat (limited to 'crawl-ref/source/attitude-change.cc')
-rw-r--r-- | crawl-ref/source/attitude-change.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc index 998c9994c6..91d61128b4 100644 --- a/crawl-ref/source/attitude-change.cc +++ b/crawl-ref/source/attitude-change.cc @@ -325,7 +325,7 @@ void good_god_holy_attitude_change(monster* holy) _print_good_god_holy_being_speech(true, "reaction", holy, MSGCH_FRIEND_ENCHANT); - if (!one_chance_in(3)) + if (!one_chance_in(3) && holy->can_speak()) _print_good_god_holy_being_speech(true, "speech", holy, MSGCH_TALK); } @@ -355,7 +355,7 @@ void good_god_holy_fail_attitude_change(monster* holy) _print_good_god_holy_being_speech(false, "reaction", holy, MSGCH_FRIEND_ENCHANT); - if (!one_chance_in(3)) + if (!one_chance_in(3) && holy->can_speak()) _print_good_god_holy_being_speech(false, "speech", holy, MSGCH_TALK); } |