From f92c98f617ffc96468e0fa7aaee043ac730ba697 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 5 Mar 2007 19:12:42 +0000 Subject: Imported 4.1-style EV calc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@982 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index b13b67101b..54cf63e0d0 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -2948,6 +2948,9 @@ int melee_attack::mons_to_hit() if (weapon && weapon->base_type == OBJ_WEAPONS) mhit += weapon->plus + property(*weapon, PWPN_HIT); + if (attacker->confused()) + mhit -= 5; + return (mhit); } -- cgit v1.2.3-54-g00ecf