Core/Movement: MotionMaster & MovementGenerators cleaning

Port From (https://github.com/TrinityCore/TrinityCore/commit/14c6a4d8238e4f383557359436b5f73cb730d4ea)
This commit is contained in:
hondacrx
2020-05-07 14:16:30 -04:00
parent dff455da9d
commit c9a91fa62f
12 changed files with 631 additions and 669 deletions
+1 -1
View File
@@ -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;