Game/AI: SMART_ACTION_JUMP_TO_POS should resume path when reached jump location
Port From (https://github.com/TrinityCore/TrinityCore/commit/a0feff65bec4e7583e281afe7f82cf1a8c77de68)
This commit is contained in:
@@ -2131,13 +2131,8 @@ namespace Game.AI
|
||||
{
|
||||
Creature creature = obj.ToCreature();
|
||||
if (creature != null)
|
||||
{
|
||||
creature.GetMotionMaster().Clear();
|
||||
// @todo add optional jump orientation support?
|
||||
creature.GetMotionMaster().MoveJump(e.Target.x, e.Target.y, e.Target.z, 0.0f, e.Action.jump.speedxy, e.Action.jump.speedz);
|
||||
}
|
||||
}
|
||||
//todo Resume path when reached jump location
|
||||
break;
|
||||
}
|
||||
case SmartActions.GoSetLootState:
|
||||
|
||||
Reference in New Issue
Block a user