Core/Movement: Remove MotionMaster::MoveJump(x, y, z) overload
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -488,7 +488,7 @@ struct boss_toc_champion_controller : public BossAI
|
||||
else
|
||||
{
|
||||
champion->SetHomePosition((ToCCommonLoc[1].GetPositionX()*2)-vChampionJumpTarget[pos].GetPositionX(), vChampionJumpTarget[pos].GetPositionY(), vChampionJumpTarget[pos].GetPositionZ(), 3);
|
||||
champion->GetMotionMaster()->MoveJump((ToCCommonLoc[1].GetPositionX() * 2) - vChampionJumpTarget[pos].GetPositionX(), vChampionJumpTarget[pos].GetPositionY(), vChampionJumpTarget[pos].GetPositionZ(), 20.0f, 20.0f);
|
||||
champion->GetMotionMaster()->MoveJump({ (ToCCommonLoc[1].GetPositionX() * 2) - vChampionJumpTarget[pos].GetPositionX(), vChampionJumpTarget[pos].GetPositionY(), vChampionJumpTarget[pos].GetPositionZ() }, 20.0f, 20.0f);
|
||||
champion->SetOrientation(3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ class boss_mimiron : public CreatureScript
|
||||
DoCastAOE(SPELL_DESPAWN_ASSAULT_BOTS);
|
||||
me->ExitVehicle();
|
||||
// ExitVehicle() offset position is not implemented, so we make up for that with MoveJump()...
|
||||
me->GetMotionMaster()->MoveJump(me->GetPositionX() + (10.f * std::cos(me->GetOrientation())), me->GetPositionY() + (10.f * std::sin(me->GetOrientation())), me->GetPositionZ(), 10.f, 5.f);
|
||||
me->GetMotionMaster()->MoveJump(me->GetPositionWithOffset({ 10.0f, 0.0f }), 10.f, 5.f);
|
||||
events.ScheduleEvent(EVENT_OUTTRO_1, 7s);
|
||||
}
|
||||
|
||||
|
||||
@@ -701,7 +701,7 @@ class boss_thorim : public CreatureScript
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
me->SetDisableGravity(false);
|
||||
me->SetControlled(false, UNIT_STATE_ROOT);
|
||||
me->GetMotionMaster()->MoveJump(2134.8f, -263.056f, 419.983f, 30.0f, 20.0f);
|
||||
me->GetMotionMaster()->MoveJump({ 2134.8f, -263.056f, 419.983f }, 30.0f, 20.0f);
|
||||
events.ScheduleEvent(EVENT_START_PERIODIC_CHARGE, 2s, 0, PHASE_2);
|
||||
events.ScheduleEvent(EVENT_UNBALANCING_STRIKE, 15s, 0, PHASE_2);
|
||||
events.ScheduleEvent(EVENT_CHAIN_LIGHTNING, 20s, 0, PHASE_2);
|
||||
|
||||
Reference in New Issue
Block a user