mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 21:32:52 +01:00
*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->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
|
||||
critter->GetMotionMaster()->MoveTargetedHome();
|
||||
|
||||
std::string name = player->GetName();
|
||||
name.append(petTypeSuffix[3]);
|
||||
critter->SetName( name );
|
||||
|
||||
Reference in New Issue
Block a user