aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-05-07 18:35:53 +0200
committerShauren <shauren.trinity@gmail.com>2023-05-07 18:35:53 +0200
commit7e0b28c70c5dc8e43d277fe00b54db9fe2d9805f (patch)
treea7cb445c377e05919200bdd9a80ed376011a4b13 /src
parent075ca141c7440a7edf6ac55345070f25bebd93c3 (diff)
Scripts/Undercity: Fixed NPC_HIGHBORNE_BUNNY being told to MoveJump to { target->GetPositionX(), 0, 0 } with speedXY = target->GetPositionY() and speedZ = target->GetPositionZ()
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/EasternKingdoms/zone_undercity.cpp5
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 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();
}
}