diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 03:08:11 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 03:08:11 +0000 |
commit | c6fe84d2cf5395e5bf5cbcb3a24361c0654c8fb4 (patch) | |
tree | 7d56269f139c0082f1b43067527fad6be1476885 /crawl-ref/source/spells3.cc | |
parent | 6d752d6fba7259fcb9dcca0566cbc1826d14d218 (diff) | |
download | crawl-ref-c6fe84d2cf5395e5bf5cbcb3a24361c0654c8fb4.tar.gz crawl-ref-c6fe84d2cf5395e5bf5cbcb3a24361c0654c8fb4.zip |
Add a few more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5745 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 6f0d5cc944..93392a3224 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -559,10 +559,12 @@ bool cast_summon_greater_demon(int pow, bool god_gift) return (success); } -bool cast_shadow_creatures(bool god_gift) +bool cast_shadow_creatures(god_type god) { bool success = false; + mpr("Wisps of shadow whirl around you..."); + const int monster = create_monster( mgen_data(RANDOM_MONSTER, BEH_FRIENDLY, 2, @@ -573,8 +575,6 @@ bool cast_shadow_creatures(bool god_gift) { success = true; - mpr("Wisps of shadow whirl around you..."); - player_angers_monster(&menv[monster]); } else @@ -972,6 +972,9 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting, { const item_def& item = mitm[corps]; + if (is_being_butchered(item, false)) + was_butchering = true; + if (animate_a_corpse(a.x, a.y, CORPSE_BODY, beha, hitting, god_gift, actual, true)) { @@ -980,9 +983,6 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting, if (see_grid(env.show, you.pos(), a)) number_seen++; - if (is_being_butchered(item, false)) - was_butchering = true; - break; } @@ -1141,8 +1141,8 @@ bool cast_twisted_resurrection(int pow, bool god_gift) const int monster = create_monster( - mgen_data(mon, BEH_FRIENDLY, 0, - you.pos(), you.pet_target, + mgen_data(mon, BEH_FRIENDLY, + 0, you.pos(), you.pet_target, (god_gift ? MG_GOD_GIFT : 0) | MG_FORCE_BEH, MONS_PROGRAM_BUG, 0, colour)); |