diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 00:28:37 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 00:28:37 +0000 |
commit | d5950593f2e966032a81d4f150b24834c18a521b (patch) | |
tree | 8eb0aed3e97b4dd1b34a81487250c42cf96bb08b /crawl-ref/source/abl-show.cc | |
parent | 297297da01e51a1ba70d3fde8c994ab9bb4f890c (diff) | |
download | crawl-ref-d5950593f2e966032a81d4f150b24834c18a521b.tar.gz crawl-ref-d5950593f2e966032a81d4f150b24834c18a521b.zip |
Clean up the routines to animate the dead.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5621 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc index 0591520d59..299c4e7698 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1463,10 +1463,8 @@ static bool _do_ability(const ability_def& abil) case ABIL_YRED_ANIMATE_CORPSE: mpr("You call on the dead to walk for you..."); - - animate_a_corpse( you.x_pos, you.y_pos, BEH_FRIENDLY, - you.pet_target, CORPSE_BODY ); - + animate_a_corpse(you.x_pos, you.y_pos, CORPSE_BODY, BEH_FRIENDLY, + you.pet_target, true); exercise(SK_INVOCATIONS, 2 + random2(4)); break; @@ -1477,10 +1475,8 @@ static bool _do_ability(const ability_def& abil) case ABIL_YRED_ANIMATE_DEAD: mpr("You call on the dead to walk for you..."); - - animate_dead( &you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY, - you.pet_target, 1 ); - + animate_dead(&you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY, + you.pet_target, true); exercise(SK_INVOCATIONS, 2 + random2(4)); break; |