Core/SAI: allow to pause/resume waypoint for non-escorting NPCs
This commit is contained in:
1 parent
95e07964fe
commit
aa24608bed
1 file changed
-7
@@ -173,8 +173,6 @@ bool SmartAI::LoadPath(uint32 entry)
|
||||
|
||||
void SmartAI::PausePath(uint32 delay, bool forced)
|
||||
{
|
||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
||||
return;
|
||||
if (HasEscortState(SMART_ESCORT_PAUSED))
|
||||
{
|
||||
TC_LOG_ERROR("misc", "SmartAI::PausePath: Creature entry %u wanted to pause waypoint movement while already paused, ignoring.", me->GetEntry());
|
||||
@@ -195,9 +193,6 @@ void SmartAI::PausePath(uint32 delay, bool forced)
|
||||
|
||||
void SmartAI::StopPath(uint32 DespawnTime, uint32 quest, bool fail)
|
||||
{
|
||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
||||
return;
|
||||
|
||||
if (quest)
|
||||
mEscortQuestID = quest;
|
||||
SetDespawnTime(DespawnTime);
|
||||
@@ -299,8 +294,6 @@ void SmartAI::ReturnToLastOOCPos()
|
||||
|
||||
void SmartAI::UpdatePath(const uint32 diff)
|
||||
{
|
||||
if (!HasEscortState(SMART_ESCORT_ESCORTING))
|
||||
return;
|
||||
if (mEscortInvokerCheckTimer < diff)
|
||||
{
|
||||
// Escort failed, no players in range
|
||||
|
||||
Reference in new issue
Block a user