From 0ebab01da03f58d1175d2604e3c7aa22e1e49fa7 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 5 Nov 2007 16:53:54 +0000 Subject: claw mutation fix for net damage, courtesy of dolorous git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2773 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/traps.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/traps.cc') diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index 353c651478..be8634efe6 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -646,9 +646,11 @@ static int damage_or_escape_net(int hold) } else if (you.attribute[ATTR_TRANSFORMATION] == TRAN_BLADE_HANDS) damage += 2; - else if (you.mutation[MUT_CLAWS]) + else if (you.has_usable_claws()) { - if (you.mutation[MUT_CLAWS] == 1) + if (you.species == SP_TROLL || you.species == SP_GHOUL) + damage += 2; + else if (you.mutation[MUT_CLAWS] == 1) damage += coinflip(); else damage += you.mutation[MUT_CLAWS] - 1; -- cgit v1.2.3-54-g00ecf