diff options
-rw-r--r-- | crawl-ref/source/spells1.cc | 8 | ||||
-rw-r--r-- | crawl-ref/source/spells1.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 231478d269..297c4d4eec 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -766,7 +766,7 @@ int cast_revitalisation( int pow ) return cast_healing(pow, you.x_pos, you.y_pos); // target yourself } -bool cast_revivification(int power) +bool cast_revivification(int pow) { int loopy = 0; // general purpose loop variable {dlb} bool success = false; @@ -783,12 +783,12 @@ bool cast_revivification(int power) loss = 2; for (loopy = 0; loopy < 9; loopy++) { - if (random2(power) < 8) + if (random2(pow) < 8) loss++; } - dec_max_hp( loss ); - set_hp( you.hp_max, false ); + dec_max_hp(loss); + set_hp(you.hp_max, false); success = true; } diff --git a/crawl-ref/source/spells1.h b/crawl-ref/source/spells1.h index 816ce24386..5f3d742f80 100644 --- a/crawl-ref/source/spells1.h +++ b/crawl-ref/source/spells1.h @@ -81,7 +81,7 @@ void cast_cure_poison(int mabil); int allowed_deaths_door_hp(void); void cast_deaths_door(int pow); int cast_fire_storm(int powc, bolt &beam); -bool cast_revivification(int power); +bool cast_revivification(int pow); void cast_berserk(void); void cast_ring_of_flames(int power); bool conjure_flame(int pow); |