fix (Core/SmartScripts): allow to start waypoint movement for a creature that is in combat
This commit is contained in:
committed by
GitHub
parent
9c0c925433
commit
dec0081f6c
@@ -179,12 +179,6 @@ void SmartAI::GenerateWayPointArray(Movement::PointsArray* points)
|
|||||||
|
|
||||||
void SmartAI::StartPath(bool run, uint32 path, bool repeat, Unit* invoker)
|
void SmartAI::StartPath(bool run, uint32 path, bool repeat, Unit* invoker)
|
||||||
{
|
{
|
||||||
if (me->IsInCombat())// no wp movement in combat
|
|
||||||
{
|
|
||||||
LOG_ERROR("scripts.ai.sai", "SmartAI::StartPath: Creature entry {} wanted to start waypoint movement while in combat, ignoring.", me->GetEntry());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (HasEscortState(SMART_ESCORT_ESCORTING))
|
if (HasEscortState(SMART_ESCORT_ESCORTING))
|
||||||
StopPath();
|
StopPath();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user