diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 17:30:17 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-18 17:30:17 +0000 |
commit | e685572907ec57837b784fe71a4c4c1bebca672d (patch) | |
tree | c853e608350fabf18ffc7996396c65e50a5e8e21 /crawl-ref/source/xom.cc | |
parent | 55808ceb59ce83cd48561b825d0fc841afd5dc84 (diff) | |
download | crawl-ref-e685572907ec57837b784fe71a4c4c1bebca672d.tar.gz crawl-ref-e685572907ec57837b784fe71a4c4c1bebca672d.zip |
Fix polymorphing of (very) ugly things: When polymorphed, they now
mutate into (very) ugly things of a different color. Also,
shapeshifters can no longer take their forms, and they can no longer be
made shapeshifters themselves.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10718 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r-- | crawl-ref/source/xom.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index b613ab0a4d..512d71086f 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -1332,7 +1332,9 @@ static bool _xom_polymorph_nearby_monster(bool helpful) bool see_old = you.can_see(mon); std::string old_name = mon->full_name(DESC_PLAIN); - if (one_chance_in(8) && !mons_is_shapeshifter(mon) + if (one_chance_in(8) + && !mons_is_ghost_demon(mon->type) + && !mons_is_shapeshifter(mon) && mons_holiness(mon) == MH_NATURAL) { mon->add_ench(one_chance_in(3) ? ENCH_GLOWING_SHAPESHIFTER |