From 324764aa0c424121d6493f7c8056f6ff4f3fb08e Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 23 Nov 2007 17:22:11 +0000 Subject: Trunk->0.3 merge (2900): Fix for vampires healing player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2901 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 4169a5a0d1..f7c1674355 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -3204,7 +3204,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) { -- cgit v1.2.3-54-g00ecf