mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core): Crash on random movement SAI (#13862)
This commit is contained in:
@@ -1950,7 +1950,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!foundTarget && me && IsCreature(me))
|
if (!foundTarget && me && IsCreature(me) && me->IsAlive())
|
||||||
{
|
{
|
||||||
if (e.action.moveRandom.distance)
|
if (e.action.moveRandom.distance)
|
||||||
me->GetMotionMaster()->MoveRandom(float(e.action.moveRandom.distance));
|
me->GetMotionMaster()->MoveRandom(float(e.action.moveRandom.distance));
|
||||||
|
|||||||
Reference in New Issue
Block a user