summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:33:59 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:33:59 +0000
commitdc6ac50dd3aa1c5187424261a5ddfb9fa0ff8284 (patch)
tree69fd83be2e006238e973ad22df85588799ecff4a /crawl-ref/source/fight.cc
parentd567ea506b72685b614643de3a09398bb9f0cdd8 (diff)
downloadcrawl-ref-dc6ac50dd3aa1c5187424261a5ddfb9fa0ff8284.tar.gz
crawl-ref-dc6ac50dd3aa1c5187424261a5ddfb9fa0ff8284.zip
Fix incorrect logic.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8578 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 a9771cead0..53ee28d25d 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2050,7 +2050,7 @@ int melee_attack::fire_res_apply_cerebov_downgrade(int res)
void melee_attack::drain_defender()
{
- if (defender->atype() == ACT_MONSTER || one_chance_in(3))
+ if (defender->atype() == ACT_MONSTER && one_chance_in(3))
return;
special_damage = 1 + random2(damage_done)