summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-18 11:43:07 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-18 11:43:07 +0000
commit744fc99610098d9572508383f39a7aa5107f7762 (patch)
tree7910c991a1e4a766509189e5789e2eff33d815d0 /crawl-ref/source/fight.cc
parentfeedf73958a200699cd2c7033d28b0f33959fb47 (diff)
downloadcrawl-ref-744fc99610098d9572508383f39a7aa5107f7762.tar.gz
crawl-ref-744fc99610098d9572508383f39a7aa5107f7762.zip
TSO worshippers with the stinger mutation will not use the tailslap
unarmed attack. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9514 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 1ba39f706e..26c4ce3644 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1097,6 +1097,14 @@ bool melee_attack::player_aux_unarmed()
continue;
}
+ // TSO worshippers don't use their stinger in order to
+ // avoid poisoning.
+ if (you.religion == GOD_SHINING_ONE
+ && player_mutation_level(MUT_STINGER) > 0)
+ {
+ continue;
+ }
+
unarmed_attack = "tail-slap";
aux_damage = 6;