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.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index b26296c2de..fe99b952c9 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -1013,14 +1013,12 @@ bool cast_revivification(int pow)
return (success);
}
-void cast_cure_poison(int mabil)
+void cast_cure_poison(int pow)
{
- if (!you.duration[DUR_POISONING])
- canned_msg(MSG_NOTHING_HAPPENS);
+ if (you.duration[DUR_POISONING] > 0)
+ reduce_poison_player(2 + random2(pow) + random2(3));
else
- reduce_poison_player( 2 + random2(mabil) + random2(3) );
-
- return;
+ canned_msg(MSG_NOTHING_HAPPENS);
}
void purification(void)