summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 12:25:51 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 12:25:51 +0000
commitd1a6e695915d4d649f3517f4c131f940c7aacc8f (patch)
treeb7d64ab158adc11c54e2a48abb594128b7017c13 /crawl-ref/source/spells1.cc
parent00af579c24de8cec2ed28065c30164f30ccac64e (diff)
downloadcrawl-ref-d1a6e695915d4d649f3517f4c131f940c7aacc8f.tar.gz
crawl-ref-d1a6e695915d4d649f3517f4c131f940c7aacc8f.zip
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
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc10
1 files changed, 3 insertions, 7 deletions
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)