summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 04:46:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 04:46:47 +0000
commita32a1c491c912904e23beabe7049254737e231e8 (patch)
tree45a6f1bc541cf30e50691d4fb51479a4105f045b /crawl-ref/source/mstuff2.cc
parentef35e62c1973fb6b8e6d99ac9c5a0add60e91aa8 (diff)
downloadcrawl-ref-a32a1c491c912904e23beabe7049254737e231e8.tar.gz
crawl-ref-a32a1c491c912904e23beabe7049254737e231e8.zip
Reorganize things a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5638 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 71b1218612..cb6122158f 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -623,6 +623,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_SUMMON_UGLY_THING:
if (_mons_abjured(monster, monsterNearby))
return;
@@ -642,12 +648,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_CALL_IMP: // class 5 demons
sumcount2 = 1 + random2(3) + random2( monster->hit_dice / 5 + 1 );