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:
@@ -93,7 +93,7 @@ bool ChaseMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
|
|||||||
{
|
{
|
||||||
if (Creature* cOwner2 = owner->ToCreature())
|
if (Creature* cOwner2 = owner->ToCreature())
|
||||||
{
|
{
|
||||||
cOwner2->SetCannotReachTarget(i_path && i_path->GetPathType() & PATHFIND_INCOMPLETE ? target->GetGUID() : ObjectGuid::Empty);
|
cOwner2->SetCannotReachTarget();
|
||||||
}
|
}
|
||||||
|
|
||||||
i_recalculateTravel = false;
|
i_recalculateTravel = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user