aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-21 15:35:12 +0200
committerShauren <shauren.trinity@gmail.com>2024-06-21 15:35:12 +0200
commitac73edc268bc8d5bbda9f4b05168e3e24c25ca45 (patch)
treefd150f29abd3fd39a163a24d8322832865f93ccb /src/server/game/AI/SmartScripts
parent721103c1c9649fc769a4230216b871319a5f7643 (diff)
Core/Movement: Allow setting position or object facing targets for jump movement
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 373cdb97e12..64a2a6e8cc1 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1973,11 +1973,11 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
{
float gravity = e.action.jump.UseDefaultGravity ? Movement::gravity : e.action.jump.Gravity;
me->GetMotionMaster()->MoveJumpWithGravity(pos, float(e.action.jump.SpeedXY), gravity, e.action.jump.PointId,
- false, nullptr, nullptr, std::move(actionResultSetter));
+ {}, nullptr, nullptr, std::move(actionResultSetter));
}
else
me->GetMotionMaster()->MoveJump(pos, float(e.action.jump.SpeedXY), float(e.action.jump.SpeedZ), e.action.jump.PointId,
- false, nullptr, nullptr, std::move(actionResultSetter));
+ {}, nullptr, nullptr, std::move(actionResultSetter));
mTimedActionWaitEvent = std::move(waitEvent);
break;