diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 15:48:58 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-17 15:48:58 +0000 |
commit | bc61291eca0c52ba3d899754c2536a0337446ee0 (patch) | |
tree | 9cc779acf1756eb6f6e7e99608f3943b54bc056c /crawl-ref/source/view.cc | |
parent | 70eb76b49d551b637e1fada7e4d249c9dd962711 (diff) | |
download | crawl-ref-bc61291eca0c52ba3d899754c2536a0337446ee0.tar.gz crawl-ref-bc61291eca0c52ba3d899754c2536a0337446ee0.zip |
Good neutral monsters shouldn't tet you train stealth, since, like
friendly monsters, they won't attack.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4299 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 77785686e3..ef8afb9268 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1286,7 +1286,7 @@ bool check_awaken(monsters* monster) if (player_light_armour(true) && you.burden_state == BS_UNENCUMBERED && you.special_wield != SPWLD_SHADOW - && !mons_friendly(monster) + && !mons_wont_attack(monster) && !mons_class_flag(monster->type, M_NO_EXP_GAIN) // if invisible, training happens much more rarely && (!unnatural_stealthy && one_chance_in(25) || one_chance_in(100))) |