Core/Movement: ported and merged Follow and Chase movement generator rewrite

This commit is contained in:
Ovahlord committed 2019-02-07 23:51:45 +01:00
1 parent 33566426aa
commit 7edabcbd88
25 files changed
+666 -725

No files matched your search

+2 -2
View File
@@ -27,6 +27,7 @@ EndScriptData */
#include "CreatureAI.h"
#include "CreatureGroups.h"
#include "DatabaseEnv.h"
#include "FollowMovementGenerator.h"
#include "Language.h"
#include "Log.h"
#include "Map.h"
@@ -36,7 +37,6 @@ EndScriptData */
#include "PhasingHandler.h"
#include "Player.h"
#include "RBAC.h"
#include "TargetedMovementGenerator.h" // for HandleNpcUnFollowCommand
#include "Transport.h"
#include "World.h"
#include "WorldSession.h"
@@ -1349,7 +1349,7 @@ public:
return false;
}
FollowMovementGenerator<Creature> const* mgen = static_cast<FollowMovementGenerator<Creature> const*>((creature->GetMotionMaster()->top()));
FollowMovementGenerator const* mgen = static_cast<FollowMovementGenerator const*>((creature->GetMotionMaster()->top()));
if (mgen->GetTarget() != player)
{