From 7fded5e3083c4d338bcefe8c40cf8be6f6581147 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 11 Apr 2008 00:50:35 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/religion.cc') 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"; -- cgit v1.2.3-54-g00ecf