mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Movement: cancel follow movement when the follow target has died
This commit is contained in:
@@ -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