Core/Movement: cancel follow movement when the follow target has died

This commit is contained in:
Ovahlord
2020-07-05 10:42:47 +02:00
parent 381d85eba4
commit 779c52ec7b

View File

@@ -202,7 +202,7 @@ bool FollowMovementGenerator::Update(Unit* owner, uint32 diff)
return false;
// Our target might have gone away
if (!_target || !_target->IsInWorld())
if (!_target || !_target->IsInWorld() || !_target->IsAlive())
return false;
// Follower cannot move at the moment