diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-05 16:53:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-05 16:53:54 +0000 |
commit | 0ebab01da03f58d1175d2604e3c7aa22e1e49fa7 (patch) | |
tree | 9d0eaca22b557f28ee60e00b247642c4c5e9d58c /crawl-ref/source/traps.cc | |
parent | 97446ef705d8a685722ca44b324df0e37ee5a9a5 (diff) | |
download | crawl-ref-0ebab01da03f58d1175d2604e3c7aa22e1e49fa7.tar.gz crawl-ref-0ebab01da03f58d1175d2604e3c7aa22e1e49fa7.zip |
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
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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; |