Core/Movement: cancel follow movement when the follow target has died
This commit is contained in:
1 parent
381d85eba4
commit
779c52ec7b
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user