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:
UltraNix
2022-10-27 10:23:05 +02:00
committed by GitHub
parent 860a5b8094
commit 5338117e0d

View File

@@ -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;