summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index e0cb7d2120..6e38997f69 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -990,31 +990,14 @@ void drain_life(int pow)
}
} // end drain_life()
-int vampiric_drain(int pow)
+int vampiric_drain(int pow, const dist &vmove)
{
int inflicted = 0;
int mgr = 0;
struct monsters *monster = 0; // NULL
- struct dist vmove;
-
- dirc:
- mpr("Which direction?", MSGCH_PROMPT);
- direction( vmove, DIR_DIR, TARG_ENEMY );
-
- if (!vmove.isValid)
- {
- canned_msg(MSG_SPELL_FIZZLES);
- return -1;
- }
mgr = mgrd[you.x_pos + vmove.dx][you.y_pos + vmove.dy];
- if (vmove.dx == 0 && vmove.dy == 0)
- {
- mpr("You can't do that.");
- goto dirc;
- }
-
if (mgr == NON_MONSTER)
{
mpr("There isn't anything there!");