summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-23 17:18:11 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-23 17:18:11 +0000
commit1c90a3f53b8e7fe1cb9aeb5b297d42f8966a9d7b (patch)
tree61e39f4eba85ab6db35fa0b2a0e2b842907f8295 /crawl-ref/source/fight.cc
parent0dea06178954c37e51dba153f8abd2ccf5d98b32 (diff)
downloadcrawl-ref-1c90a3f53b8e7fe1cb9aeb5b297d42f8966a9d7b.tar.gz
crawl-ref-1c90a3f53b8e7fe1cb9aeb5b297d42f8966a9d7b.zip
Fixed vampire attacks healing the player (Christopher Haima).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2900 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index a77844f618..c678965712 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -3317,7 +3317,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
if (defender->stat_hp() < defender->stat_maxhp())
{
- defender->heal(1 + random2(damage_done), coinflip());
+ attacker->heal(1 + random2(damage_done), coinflip());
if (needs_message)
{