diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-03 23:02:32 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-03 23:02:32 +0000 |
commit | 49815faa5cfe1cce614f4d2bbab9341613a662c5 (patch) | |
tree | 9bf29a86509e1cbbf39674875d832d080fb0bdda /crawl-ref/source/spl-cast.cc | |
parent | 72aae92fdbbe1afa692ebe0bf9dc32e59ae9e368 (diff) | |
download | crawl-ref-49815faa5cfe1cce614f4d2bbab9341613a662c5.tar.gz crawl-ref-49815faa5cfe1cce614f4d2bbab9341613a662c5.zip |
[2070013]: newly created, animated, etc. friendly monsters now default to
'follow me' behaviour, rather than following your last command (even if
was before they were summoned.) Their behaviour can still be changed by
giving them commands, of course.
The previous behaviour was clearly intentional so I'm not too sure about
this change; feel free to revert if I'm missing something.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8886 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 52643974dd..016c168260 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1606,7 +1606,7 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) mpr("You attempt to give life to the dead..."); if (animate_remains(you.pos(), CORPSE_SKELETON, BEH_FRIENDLY, - you.pet_target, god) < 0) + MHITYOU, god) < 0) { mpr("There is no skeleton here to animate!"); } @@ -1615,7 +1615,7 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) case SPELL_ANIMATE_DEAD: mpr("You call on the dead to walk for you..."); - animate_dead(&you, powc + 1, BEH_FRIENDLY, you.pet_target, god); + animate_dead(&you, powc + 1, BEH_FRIENDLY, MHITYOU, god); break; case SPELL_SIMULACRUM: |