fix(Core/AI): Increase movement leash extension interval. (#20867)
Init.
This commit is contained in:
parent
85d8c99b49
commit
2654ec83cd
2 changed files with 3 additions and 3 deletions
|
|
@ -158,13 +158,13 @@ bool ChaseMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
|
|||
i_leashExtensionTimer.Update(time_diff);
|
||||
if (i_leashExtensionTimer.Passed())
|
||||
{
|
||||
i_leashExtensionTimer.Reset(1500);
|
||||
i_leashExtensionTimer.Reset(5000);
|
||||
if (cOwner)
|
||||
cOwner->UpdateLeashExtensionTime();
|
||||
}
|
||||
}
|
||||
else if (i_recalculateTravel)
|
||||
i_leashExtensionTimer.Reset(1500);
|
||||
i_leashExtensionTimer.Reset(5000);
|
||||
|
||||
// if the target moved, we have to consider whether to adjust
|
||||
if (!_lastTargetPosition || target->GetPosition() != _lastTargetPosition.value() || mutualChase != _mutualChase || !owner->IsWithinLOSInMap(target))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue