diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-05 16:32:21 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-05 16:32:21 +0000 |
commit | a9f920b3942710414d4c5fece28ebfe7ae4dcece (patch) | |
tree | 371ed6f29ee867546661ad5d83b575d6f271bd7a | |
parent | 8488d65355e43171faae36676fd3f3e9d97c479b (diff) | |
download | crawl-ref-a9f920b3942710414d4c5fece28ebfe7ae4dcece.tar.gz crawl-ref-a9f920b3942710414d4c5fece28ebfe7ae4dcece.zip |
Fix claw mutation check for net damage. (Patch by dolorous.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2772 c06c8d41-db1a-0410-9941-cceddc491573
-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 3fa830702a..e94740756c 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -583,9 +583,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; |