From 49815faa5cfe1cce614f4d2bbab9341613a662c5 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 3 Feb 2009 23:02:32 +0000 Subject: [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 --- crawl-ref/source/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 8fae69b5f7..786cb8f58d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6538,7 +6538,7 @@ void player::attacking(actor *other) { const monsters *mon = dynamic_cast(other); if (!mons_friendly(mon) && !mons_neutral(mon)) - pet_target = monster_index(mon); + pet_target = mon->mindex(); } if (player_mutation_level(MUT_BERSERK) -- cgit v1.2.3-54-g00ecf