summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-24 15:03:48 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-24 15:03:48 +0000
commitb88c1e081c6245d8b00db69270482a5034964dcd (patch)
tree9edab6315aadc3d6434f3a0e67339969becde251 /crawl-ref
parent6a4c36a63003a555b4579927ca597380b99fce6a (diff)
downloadcrawl-ref-b88c1e081c6245d8b00db69270482a5034964dcd.tar.gz
crawl-ref-b88c1e081c6245d8b00db69270482a5034964dcd.zip
Apply trunk r10599 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10600 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/fight.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 7bce7d2313..9a274c4c9b 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1238,8 +1238,8 @@ bool melee_attack::player_aux_unarmed()
}
// unified to-hit calculation
- to_hit = random2( calc_your_to_hit_unarmed(uattack,
- damage_brand == SPWPN_VAMPIRICISM) );
+ to_hit = random2(calc_your_to_hit_unarmed(uattack,
+ damage_brand == SPWPN_VAMPIRICISM));
make_hungry(2, true);
@@ -2000,9 +2000,16 @@ bool melee_attack::player_monattk_hit_effects(bool mondied)
special_damage);
#endif
- special_damage = defender->hurt(&you, special_damage);
+ special_damage = defender->hurt(&you, special_damage, BEAM_MISSILE, false);
- return (!defender->alive());
+ if (!defender->alive())
+ {
+ _monster_die(defender_as_monster(), KILL_YOU, NON_MONSTER);
+
+ return (true);
+ }
+
+ return (false);
}
void melee_attack::_monster_die(monsters* monster, killer_type killer,