From c8f9d2f9a43d42eb7e7b87f4f9323c2caf39d778 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 16 Nov 2008 18:24:38 +0000 Subject: Simplify again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7450 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/fight.cc') 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)) -- cgit v1.2.3-54-g00ecf