*Fix the bug that noncombat pet does not follow owner.
--HG-- branch : trunk
This commit is contained in:
@@ -5720,6 +5720,8 @@ void Spell::EffectSummonCritter(uint32 i)
|
|||||||
critter->SetReactState(REACT_PASSIVE);
|
critter->SetReactState(REACT_PASSIVE);
|
||||||
critter->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
critter->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||||
|
|
||||||
|
critter->GetMotionMaster()->MoveTargetedHome();
|
||||||
|
|
||||||
std::string name = player->GetName();
|
std::string name = player->GetName();
|
||||||
name.append(petTypeSuffix[3]);
|
name.append(petTypeSuffix[3]);
|
||||||
critter->SetName( name );
|
critter->SetName( name );
|
||||||
|
|||||||
Reference in New Issue
Block a user