summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 23:02:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-03 23:02:32 +0000
commit49815faa5cfe1cce614f4d2bbab9341613a662c5 (patch)
tree9bf29a86509e1cbbf39674875d832d080fb0bdda /crawl-ref/source/abl-show.cc
parent72aae92fdbbe1afa692ebe0bf9dc32e59ae9e368 (diff)
downloadcrawl-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/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 9ee74cd549..0d290f460e 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1376,8 +1376,7 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_RAISE_DEAD:
- animate_dead(&you, you.experience_level * 5, BEH_FRIENDLY,
- you.pet_target);
+ animate_dead(&you, you.experience_level * 5, BEH_FRIENDLY, MHITYOU);
break;
case ABIL_CONTROL_DEMON:
@@ -1551,7 +1550,7 @@ static bool _do_ability(const ability_def& abil)
mpr("You attempt to give life to the dead...");
if (animate_remains(you.pos(), CORPSE_BODY, BEH_FRIENDLY,
- you.pet_target, GOD_YREDELEMNUL) < 0)
+ MHITYOU, GOD_YREDELEMNUL) < 0)
{
mpr("There are no remains here to animate!");
}
@@ -1567,7 +1566,7 @@ static bool _do_ability(const ability_def& abil)
mpr("You call on the dead to walk for you...");
animate_dead(&you, 1 + you.skills[SK_INVOCATIONS], BEH_FRIENDLY,
- you.pet_target, GOD_YREDELEMNUL);
+ MHITYOU, GOD_YREDELEMNUL);
exercise(SK_INVOCATIONS, 2 + random2(4));
break;