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

This commit is contained in:
Wyrserth
2019-06-18 20:04:34 +02:00
committed by Giacomo Pozzoni
parent a8629eb6d1
commit d6e3660115

View File

@@ -44,12 +44,6 @@ bool SmartAI::IsAIControlled() const
void SmartAI::StartPath(bool run/* = false*/, uint32 pathId/* = 0*/, bool repeat/* = false*/, Unit* invoker/* = nullptr*/, uint32 nodeId/* = 1*/)
{
if (me->IsEngaged()) // no wp movement in combat
{
TC_LOG_ERROR("scripts.ai.sai", "SmartAI::StartPath: Creature wanted to start waypoint movement (pathId: %u) while in combat, ignoring. (%s)", pathId, me->GetGUID().ToString().c_str());
return;
}
if (HasEscortState(SMART_ESCORT_ESCORTING))
StopPath();