Scripts/SmartScripts: Clear Movement on Death

This commit is contained in:
robinsch authored and Rushor committed 2015-06-03 14:54:01 +02:00
1 parent 0148832b32
commit cb280ec5dd
1 file changed
+4
@@ -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)