summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/abl-show.cc3
-rw-r--r--crawl-ref/source/spells1.cc4
-rw-r--r--crawl-ref/source/spells1.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 16ff1479a9..377477017a 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1370,7 +1370,8 @@ static bool _do_ability(const ability_def& abil)
case ABIL_ZIN_REVITALISATION:
{
- int result = cast_revitalisation(1 + (you.skills[SK_INVOCATIONS] / 4));
+ int result = cast_revitalisation(1 + (you.skills[SK_INVOCATIONS] / 4),
+ random2(3));
if (result > 0)
exercise(SK_INVOCATIONS, 2 + random2(result));
break;
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index a06c2e340c..377868f747 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -759,13 +759,13 @@ int cast_healing( int pow, int target_x, int target_y )
return (_healing_spell( pow + roll_dice( 2, pow ) - 2, target_x, target_y ));
}
-int cast_revitalisation(int pow)
+int cast_revitalisation(int pow, int type)
{
const int max_steps = std::min(pow, 6);
int steps = 0;
int loss_amt;
- switch (random2(3))
+ switch (type)
{
case 0:
// Restore HP.
diff --git a/crawl-ref/source/spells1.h b/crawl-ref/source/spells1.h
index 5f3d742f80..687b9f59f8 100644
--- a/crawl-ref/source/spells1.h
+++ b/crawl-ref/source/spells1.h
@@ -54,7 +54,7 @@ char cast_lesser_healing(void);
* called from: ability - spell
* *********************************************************************** */
int cast_healing(int pow, int target_x = -1, int target_y = -1);
-int cast_revitalisation(int pow);
+int cast_revitalisation(int pow, int type);
// last updated 24may2000 {dlb}
/* ***********************************************************************