Scripts/SmartScripts: Clear Movement on Death
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user