From 7e0b28c70c5dc8e43d277fe00b54db9fe2d9805f Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 7 May 2023 18:35:53 +0200 Subject: Scripts/Undercity: Fixed NPC_HIGHBORNE_BUNNY being told to MoveJump to { target->GetPositionX(), 0, 0 } with speedXY = target->GetPositionY() and speedZ = target->GetPositionZ() --- src/server/scripts/EasternKingdoms/zone_undercity.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/EasternKingdoms/zone_undercity.cpp b/src/server/scripts/EasternKingdoms/zone_undercity.cpp index 765b9e9f6f6..8bb474307fa 100644 --- a/src/server/scripts/EasternKingdoms/zone_undercity.cpp +++ b/src/server/scripts/EasternKingdoms/zone_undercity.cpp @@ -155,14 +155,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(); } } -- cgit v1.2.3