summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-04 00:13:03 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-04 00:13:03 +0000
commit7335e509d05ab59dcb741ca29d4b2963d5c924ec (patch)
tree0fff38e841c6d5eec2ad8aa3f4619f2a31be3679 /crawl-ref/source/spells3.cc
parent9cb75b706542bbc4043437f25a5e35dbfd99656e (diff)
downloadcrawl-ref-7335e509d05ab59dcb741ca29d4b2963d5c924ec.tar.gz
crawl-ref-7335e509d05ab59dcb741ca29d4b2963d5c924ec.zip
Oops, should change you.pet_target before calling behaviour_event(), not
after. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6378 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 46f55f7692..aed856cf55 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1673,6 +1673,9 @@ bool cast_sanctuary(const int power)
env.sanctuary_pos.y = you.y_pos;
env.sanctuary_time = 7 + you.skills[SK_INVOCATIONS]/2;
+ // Pets stop attacking and converge on you.
+ you.pet_target = MHITYOU;
+
// radius could also be influenced by Inv
// and would then have to be stored globally.
const int radius = 5;
@@ -1802,9 +1805,6 @@ bool cast_sanctuary(const int power)
else if (scare_count > 0)
mpr("The monsters scatter in all directions!");
- // Pets stop attacking and converge on you.
- you.pet_target = MHITYOU;
-
return (true);
}