summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
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);
}