From 78d665927025529155a1269c257f2619082d70ab Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 11 Apr 2009 16:06:48 -0500 Subject: *Fix the bug that noncombat pet does not follow owner. --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 d9ca84c18ae..7d5fe3d8116 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5720,6 +5720,8 @@ void Spell::EffectSummonCritter(uint32 i) critter->SetReactState(REACT_PASSIVE); critter->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + critter->GetMotionMaster()->MoveTargetedHome(); + std::string name = player->GetName(); name.append(petTypeSuffix[3]); critter->SetName( name ); -- cgit v1.2.3