diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-05 19:12:42 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-05 19:12:42 +0000 |
commit | f92c98f617ffc96468e0fa7aaee043ac730ba697 (patch) | |
tree | 043ec8944989f1fce3a5d032ad8919a12c707f49 /crawl-ref/source/fight.cc | |
parent | ac070947b0015988e4dd98ddbea2cf5aedbc71b6 (diff) | |
download | crawl-ref-f92c98f617ffc96468e0fa7aaee043ac730ba697.tar.gz crawl-ref-f92c98f617ffc96468e0fa7aaee043ac730ba697.zip |
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
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |