aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authortkrokli <tkrokli@users.noreply.github.com>2017-03-26 18:09:46 +0200
committerjackpoz <giacomopoz@gmail.com>2017-03-26 18:09:46 +0200
commit6e08051825d3d05ea2bccbe43c0823a40ee08057 (patch)
tree3907587f6688aa1a223cb696802e30b2cbb4342f /src/server/game/AI/SmartScripts
parent596320ba152a55092d924e841a1076e5cf2ce56f (diff)
Game/AI: SMART_ACTION_JUMP_TO_POS should resume path when reached jump location (#19029)
SmartAI NPCs using SMART_ACTION_JUMP_TO_POS should resume their path when they have reached the jump location. The changes in this PR makes the action work as intended. Closes #18760
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index afdda7faf0f..359f35e4d40 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -2132,12 +2132,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
{
if (Creature* creature = (*itr)->ToCreature())
- {
- creature->GetMotionMaster()->Clear();
creature->GetMotionMaster()->MoveJump(e.target.x, e.target.y, e.target.z, 0.0f, (float)e.action.jump.speedxy, (float)e.action.jump.speedz); // @todo add optional jump orientation support?
- }
}
- /// @todo Resume path when reached jump location
delete targets;
break;