summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 05:04:26 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 05:04:26 +0000
commitd7a52bd82726ed59eab25a48fe4fcf299c40cb85 (patch)
tree2f8e3ad6f402e152de2329756e226cac0c0a0be1 /crawl-ref/source/mstuff2.cc
parent0f694b514ed7769c4e19bba7a3c8ab4d28f33234 (diff)
downloadcrawl-ref-d7a52bd82726ed59eab25a48fe4fcf299c40cb85.tar.gz
crawl-ref-d7a52bd82726ed59eab25a48fe4fcf299c40cb85.zip
Revert previous reorganization.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5640 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index cb6122158f..71b1218612 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -623,12 +623,6 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast)
}
return;
- case SPELL_ANIMATE_DEAD:
- // see special handling in monstuff::handle_spell() {dlb}
- animate_dead(monster, 5 + random2(5), SAME_ATTITUDE(monster),
- monster->foe);
- return;
-
case SPELL_SUMMON_UGLY_THING:
if (_mons_abjured(monster, monsterNearby))
return;
@@ -648,6 +642,12 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast)
}
return;
+ case SPELL_ANIMATE_DEAD:
+ // see special handling in monstuff::handle_spell() {dlb}
+ animate_dead(monster, 5 + random2(5), SAME_ATTITUDE(monster),
+ monster->foe);
+ return;
+
case SPELL_CALL_IMP: // class 5 demons
sumcount2 = 1 + random2(3) + random2( monster->hit_dice / 5 + 1 );