summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-30 13:19:35 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-30 13:19:35 +0000
commit649ca00119900bbafc29db3fac2de37802e9e3a6 (patch)
treec65d4cf2bfcc873679f79db8d062749abd7ec7e8 /crawl-ref
parent65c148fa03d1d202ed7c69324e17bde5c8429b7a (diff)
downloadcrawl-ref-649ca00119900bbafc29db3fac2de37802e9e3a6.tar.gz
crawl-ref-649ca00119900bbafc29db3fac2de37802e9e3a6.zip
Reduce frequency of polymorph zaps.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3155 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/monstuff.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index fb3a644b33..3c3fcb49b3 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -3175,6 +3175,13 @@ static bool handle_wand(monsters *monster, bolt &beem)
case WAND_RANDOM_EFFECTS:
return (false);
+ case WAND_POLYMORPH_OTHER:
+ // Monsters can be very trigger happy with wands, reduce this
+ // for polymorph.
+ if (!one_chance_in(5))
+ return false;
+ break;
+
// these are wands that monsters will aim at themselves {dlb}:
case WAND_HASTING:
if (!monster->has_ench(ENCH_HASTE))