Core/SAI: allow to start waypoint movement for a creature that is in combat. (#23426)

# Conflicts:
#	src/server/game/AI/SmartScripts/SmartAI.cpp
This commit is contained in:
Wyrserth
2019-06-18 20:04:34 +02:00
committed by Ovahlord
parent 4efedd2688
commit e3cb264262

View File

@@ -62,12 +62,6 @@ void SmartAI::UpdateDespawn(uint32 diff)
void SmartAI::StartPath(bool run/* = false*/, uint32 pathId/* = 0*/, bool repeat/* = false*/, Unit* invoker/* = nullptr*/, uint32 nodeId/* = 1*/)
{
if (me->IsInCombat()) // no wp movement in combat
{
TC_LOG_ERROR("misc", "SmartAI::StartPath: Creature entry %u wanted to start waypoint movement (%u) while in combat, ignoring.", me->GetEntry(), pathId);
return;
}
if (HasEscortState(SMART_ESCORT_ESCORTING))
StopPath();