summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 667a75d649..102eb0cbf7 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -731,7 +731,7 @@ static int _healing_spell(int healed, bool divine_ability,
}
const bool can_pacify = _can_pacify_monster(monster, healed);
- const bool was_hostile = _mons_hostile(monster);
+ const bool is_hostile = _mons_hostile(monster);
// Don't divinely heal a monster you can't pacify.
if (divine_ability
@@ -746,7 +746,7 @@ static int _healing_spell(int healed, bool divine_ability,
if (you.religion == GOD_ELYVILON
&& can_pacify
- && _mons_hostile(monster))
+ && is_hostile)
{
did_something = true;
simple_god_message(" supports your offer of peace.");
@@ -776,7 +776,7 @@ static int _healing_spell(int healed, bool divine_ability,
else
print_wounds(monster);
- if (you.religion == GOD_ELYVILON && !was_hostile)
+ if (you.religion == GOD_ELYVILON && !is_hostile)
{
simple_god_message(" appreciates your healing of a fellow "
"creature.");