fix (Core/SmartScripts): allow to start waypoint movement for a creature that is in combat

This commit is contained in:
IntelligentQuantum 2022-03-27 20:04:36 +04:30 committed by GitHub
parent 9c0c925433
commit dec0081f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,12 +179,6 @@ void SmartAI::GenerateWayPointArray(Movement::PointsArray* points)
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))
StopPath();