summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-11 00:50:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-11 00:50:35 +0000
commit7fded5e3083c4d338bcefe8c40cf8be6f6581147 (patch)
treea2ee70e92106fccfcf47095002d234dd44b5a406 /crawl-ref/source/religion.cc
parenta416267af39133d1afa01bd1a565f596cc8aa66d (diff)
downloadcrawl-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.cc11
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";