diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-16 18:24:38 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-16 18:24:38 +0000 |
commit | c8f9d2f9a43d42eb7e7b87f4f9323c2caf39d778 (patch) | |
tree | 399887aa0259a7e4eba61ea0d0453a7f3814dd62 /crawl-ref/source/fight.cc | |
parent | 65ad20dff06c085e329e627ddeebe8a1deca6d04 (diff) | |
download | crawl-ref-c8f9d2f9a43d42eb7e7b87f4f9323c2caf39d778.tar.gz crawl-ref-c8f9d2f9a43d42eb7e7b87f4f9323c2caf39d778.zip |
Simplify again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7450 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, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index cf3174a320..25973ca306 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -3591,8 +3591,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk) break; case AF_POISON_STR: - res = defender->res_poison(); - if (res <= 0) + if (defender->res_poison() <= 0) { defender->poison(attacker, roll_dice(1, 3)); if (one_chance_in(4)) |