Core/Misc: Apply various cosmetic changes that were made to 3.3.5 branch when porting master branch code there

This commit is contained in:
Shauren
2022-04-01 20:36:30 +02:00
parent 2485d13e35
commit 98e848436d
6 changed files with 8 additions and 14 deletions

View File

@@ -69,8 +69,8 @@ void SmartAI::StartPath(bool run/* = false*/, uint32 pathId/* = 0*/, bool repeat
if (invoker && invoker->GetTypeId() == TYPEID_PLAYER)
{
_escortNPCFlags = me->m_unitData->NpcFlags[0];
me->ReplaceAllNpcFlags((NPCFlags)0);
_escortNPCFlags = me->GetNpcFlags();
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_NONE);
}
me->GetMotionMaster()->MovePath(_path, _repeatWaypointPath);