Merge pull request #14838 from Rushor/stop

Scripts/SmartScripts: Clear Movement on Death
This commit is contained in:
MitchesD
2015-06-11 10:57:10 +02:00

View File

@@ -581,7 +581,11 @@ void SmartAI::JustDied(Unit* killer)
{
GetScript()->ProcessEventsFor(SMART_EVENT_DEATH, killer);
if (HasEscortState(SMART_ESCORT_ESCORTING))
{
EndPath(true);
me->StopMoving();//force stop
me->GetMotionMaster()->MoveIdle();
}
}
void SmartAI::KilledUnit(Unit* victim)