mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Core/SAI: allow to pause/resume waypoint for non-escorting NPCs (#20684)
This commit is contained in:
@@ -128,9 +128,6 @@ bool SmartAI::LoadPath(uint32 entry)
|
|||||||
|
|
||||||
void SmartAI::PausePath(uint32 delay, bool forced)
|
void SmartAI::PausePath(uint32 delay, bool forced)
|
||||||
{
|
{
|
||||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (HasEscortState(SMART_ESCORT_PAUSED))
|
if (HasEscortState(SMART_ESCORT_PAUSED))
|
||||||
{
|
{
|
||||||
TC_LOG_ERROR("misc", "SmartAI::PausePath: Creature entry %u wanted to pause waypoint (current waypoint: %u) movement while already paused, ignoring.", me->GetEntry(), _currentWaypointNode);
|
TC_LOG_ERROR("misc", "SmartAI::PausePath: Creature entry %u wanted to pause waypoint (current waypoint: %u) movement while already paused, ignoring.", me->GetEntry(), _currentWaypointNode);
|
||||||
@@ -155,9 +152,6 @@ void SmartAI::PausePath(uint32 delay, bool forced)
|
|||||||
|
|
||||||
void SmartAI::StopPath(uint32 DespawnTime, uint32 quest, bool fail)
|
void SmartAI::StopPath(uint32 DespawnTime, uint32 quest, bool fail)
|
||||||
{
|
{
|
||||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (quest)
|
if (quest)
|
||||||
mEscortQuestID = quest;
|
mEscortQuestID = quest;
|
||||||
|
|
||||||
@@ -269,9 +263,6 @@ void SmartAI::ReturnToLastOOCPos()
|
|||||||
|
|
||||||
void SmartAI::UpdatePath(const uint32 diff)
|
void SmartAI::UpdatePath(const uint32 diff)
|
||||||
{
|
{
|
||||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (_escortInvokerCheckTimer < diff)
|
if (_escortInvokerCheckTimer < diff)
|
||||||
{
|
{
|
||||||
if (!IsEscortInvokerInRange())
|
if (!IsEscortInvokerInRange())
|
||||||
|
|||||||
Reference in New Issue
Block a user