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:
hondacrx
2020-05-06 14:52:33 -04:00
parent ac8d747c61
commit a7f58dc076
2 changed files with 0 additions and 7 deletions
@@ -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:
@@ -181,8 +181,6 @@ namespace Game.Movement
Unit victim = unit.GetVictim();
if (victim != null)
unit.GetMotionMaster().MoveChase(victim);
else
unit.GetMotionMaster().Initialize();
}
if (unit.ToCreature().GetAI() != null)