fix(Core/Movement): Fixed mobs evading attacks in case of incompleted… (#13519)
fix(Core/Movement): Fixed mobs evading attacks in case of incompleted movement paths. Fixes #12339 Fixes #13156
This commit is contained in:
parent
860a5b8094
commit
5338117e0d
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ bool ChaseMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
|
|||
{
|
||||
if (Creature* cOwner2 = owner->ToCreature())
|
||||
{
|
||||
cOwner2->SetCannotReachTarget(i_path && i_path->GetPathType() & PATHFIND_INCOMPLETE ? target->GetGUID() : ObjectGuid::Empty);
|
||||
cOwner2->SetCannotReachTarget();
|
||||
}
|
||||
|
||||
i_recalculateTravel = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue