summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:22:14 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:22:14 +0000
commit48e6d3f0a10c226f6c22b108b74ef3b9b5c39de2 (patch)
tree3533388fa5da3680f2c8b3dcffc513104a3930a2 /crawl-ref/source/fight.cc
parent42937236bdf2420d77231c81aef1f01beac65096 (diff)
downloadcrawl-ref-48e6d3f0a10c226f6c22b108b74ef3b9b5c39de2.tar.gz
crawl-ref-48e6d3f0a10c226f6c22b108b74ef3b9b5c39de2.zip
Simplify check for negative energy resistance.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8575 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 5df150ac6b..a9771cead0 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2952,7 +2952,7 @@ bool melee_attack::apply_damage_brand()
emit_nodmg_hit_message();
const int hdcheck =
- (defender->holiness() == MH_NATURAL? random2(30) : random2(22));
+ (defender->holiness() == MH_NATURAL ? random2(30) : random2(22));
if (mons_class_is_confusable(defender->id())
&& hdcheck >= defender->get_experience_level())