diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-11-18 00:32:06 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-11-18 00:32:06 +0100 |
| commit | 71ebbc60cccdf28c02f01cacf2adc44f7812286f (patch) | |
| tree | d2e173f04621d283e83b8796a2fbe32a873a9ee5 /src/server/scripts/EasternKingdoms | |
| parent | f94a3e14870e5ebbf15471df1b168500e0f0be52 (diff) | |
Core/Movement: Remove MotionMaster::MoveJump(x, y, z) overload
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
| -rw-r--r-- | src/server/scripts/EasternKingdoms/zone_undercity.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/EasternKingdoms/zone_undercity.cpp b/src/server/scripts/EasternKingdoms/zone_undercity.cpp index 2c05032de2e..21211518c3c 100644 --- a/src/server/scripts/EasternKingdoms/zone_undercity.cpp +++ b/src/server/scripts/EasternKingdoms/zone_undercity.cpp @@ -153,14 +153,15 @@ public: { if (summoned->GetEntry() == NPC_HIGHBORNE_BUNNY) { + summoned->SetDisableGravity(true); + if (Creature* target = ObjectAccessor::GetCreature(*summoned, targetGUID)) { - target->GetMotionMaster()->MoveJump(target->GetPositionX(), target->GetPositionY(), me->GetPositionZ() + 15.0f, me->GetOrientation(), 0); + target->GetMotionMaster()->MovePoint(0, target->GetPositionX(), target->GetPositionY(), me->GetPositionZ() + 15.0f, false); target->UpdatePosition(target->GetPositionX(), target->GetPositionY(), me->GetPositionZ()+15.0f, 0.0f); summoned->CastSpell(target, SPELL_RIBBON_OF_SOULS, false); } - summoned->SetDisableGravity(true); targetGUID = summoned->GetGUID(); } } |
