From f069a9ee36116418622f942cc8eceb70d384919c Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 27 Apr 2009 21:32:39 -0500 Subject: *Let summoned guardian follow owner by default. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 0532be77b8e..54fb21d334b 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6468,6 +6468,8 @@ void Spell::SummonGuardian(uint32 entry, SummonPropertiesEntry const *properties ((Guardian*)summon)->InitStatsForLevel(level); summon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); + + summon->GetMotionMaster()->MoveTargetedHome(); } } -- cgit v1.2.3