From d1a6e695915d4d649f3517f4c131f940c7aacc8f Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 29 Jun 2008 12:25:51 +0000 Subject: Enable healing of allies using Elyvilon's power. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6217 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index b569d371a0..beff2923ad 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -626,9 +626,6 @@ static bool _can_pacify_monster(const monsters *mon, const int healed) if (healed < 1) return (false); - if (!_mons_hostile(mon)) - return (false); - // I was thinking of jellies when I wrote this, but maybe we shouldn't // exclude zombies and such... (jpeg) if (mons_intel(mon->type) <= I_PLANT) // no self-awareness @@ -789,12 +786,11 @@ char cast_greatest_healing( int pow ) } #endif -int cast_healing( int pow, int target_x, int target_y ) +int cast_healing(int pow, int target_x, int target_y) { - if (pow > 50) - pow = 50; + pow = std::min(50, pow); - return (_healing_spell( pow + roll_dice( 2, pow ) - 2, target_x, target_y )); + return (_healing_spell(pow + roll_dice(2, pow) - 2, target_x, target_y)); } void vitalisation_chain(int amount) -- cgit v1.2.3-54-g00ecf