summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-05-22 19:59:37 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2013-05-22 19:59:37 -0600
commitc515b7c7a46075cf39eba00c36a0c786a13e3691 (patch)
tree546cd80ab241c2664f9d3d20a6b3342b2e550b67 /crawl-ref/source/spl-miscast.cc
parent7dfc1d26ae58d1276f32f825983a66dac0d7608e (diff)
downloadcrawl-ref-c515b7c7a46075cf39eba00c36a0c786a13e3691.tar.gz
crawl-ref-c515b7c7a46075cf39eba00c36a0c786a13e3691.zip
Have a necromancy miscast source of rotting use ::rot().
This prevents it from rotting through Zin's Vitalisation. This also adjusts ::rot()'s quiet property to be meaningful in the player case, and adjusts the code for the only time this was used to retain the same behaviour.
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index 8ae7110b5a..d78a0ddf91 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -1731,11 +1731,7 @@ void MiscastEffect::_necromancy(int severity)
all_msg = "You smell decay.";
}
- if (target->is_player())
- you.rotting++;
- else
- target_as_monster()->add_ench(mon_enchant(ENCH_ROT, 1,
- guilty));
+ target->rot(act_source, 1, 0, true);
}
else if (you.species == SP_MUMMY)
{