Core/Movement: MotionMaster & MovementGenerators cleaning
Port From (https://github.com/TrinityCore/TrinityCore/commit/14c6a4d8238e4f383557359436b5f73cb730d4ea)
This commit is contained in:
@@ -506,7 +506,7 @@ namespace Game.Chat
|
||||
|
||||
FollowMovementGenerator<Creature> mgen = (FollowMovementGenerator<Creature>)creature.GetMotionMaster().Top();
|
||||
|
||||
if (mgen.Target != player)
|
||||
if (mgen.GetTarget() != player)
|
||||
{
|
||||
handler.SendSysMessage(CypherStrings.CreatureNotFollowYou, creature.GetName());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user