mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
fix(Core/Movement): fix multiple creature movement issues (#5097)
This commit is contained in:
@@ -478,8 +478,8 @@ public:
|
||||
{
|
||||
if (!c->IsAlive())
|
||||
c->Respawn();
|
||||
c->SetDisableGravity(true);
|
||||
c->SetCanFly(true);
|
||||
c->SetDisableGravity(true);
|
||||
c->SetVisible(true);
|
||||
|
||||
Item* i;
|
||||
@@ -501,8 +501,8 @@ public:
|
||||
if (c->IsVisible())
|
||||
{
|
||||
c->SetInCombatWithZone();
|
||||
c->SetDisableGravity(false);
|
||||
c->SetCanFly(false);
|
||||
c->SetDisableGravity(false);
|
||||
c->GetMotionMaster()->MoveJump(fg->GetPositionX(), fg->GetPositionY(), fg->GetPositionZ(), 20.0f, 10.0f);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -182,7 +182,6 @@ public:
|
||||
c->CastSpell(c, 69413, true);
|
||||
c->SetCanFly(true);
|
||||
c->SetDisableGravity(true);
|
||||
c->SetHover(true);
|
||||
c->SendMovementFlagUpdate();
|
||||
float dist = rand_norm() * 2.0f;
|
||||
float angle = rand_norm() * 2 * M_PI;
|
||||
@@ -227,7 +226,6 @@ public:
|
||||
continue;
|
||||
c->SetCanFly(false);
|
||||
c->SetDisableGravity(false);
|
||||
c->SetHover(false);
|
||||
c->SendMovementFlagUpdate();
|
||||
c->CastSpell(c, 69350, true);
|
||||
}
|
||||
@@ -1218,7 +1216,6 @@ public:
|
||||
{
|
||||
c->SetCanFly(true);
|
||||
c->SetDisableGravity(true);
|
||||
c->SetHover(true);
|
||||
c->GetMotionMaster()->MovePoint(0, TSSindragosaPos2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user