diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-11 00:50:35 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-11 00:50:35 +0000 |
commit | 7fded5e3083c4d338bcefe8c40cf8be6f6581147 (patch) | |
tree | a2ee70e92106fccfcf47095002d234dd44b5a406 /crawl-ref/source/religion.cc | |
parent | a416267af39133d1afa01bd1a565f596cc8aa66d (diff) | |
download | crawl-ref-7fded5e3083c4d338bcefe8c40cf8be6f6581147.tar.gz crawl-ref-7fded5e3083c4d338bcefe8c40cf8be6f6581147.zip |
Clean up TSO's follower blessings a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4186 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index aa748f35b6..c13d20f902 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -953,7 +953,11 @@ static bool tso_blessing_friendliness(monsters *mon) mon->attitude = ATT_FRIENDLY; - mon->del_ench(ENCH_CHARM, true); + // If the monster is charmed, make it permanently friendly. Note + // that we have to delete the enchantment without removing the + // enchantment effect, in order to keep the monster from turning + // hostile. + mon->del_ench(ENCH_CHARM, true, false); return true; } @@ -1166,10 +1170,7 @@ bool bless_follower(monsters* follower, bool more_time = false; if (!friendliness || coinflip()) - { - if (tso_blessing_extend_stay(mon)) - more_time = true; - } + more_time = tso_blessing_extend_stay(mon); if (friendliness && more_time) result = "friendliness and more time in this world"; |