Skip to content

Commit

Permalink
Use MoveOptions flag for scripts calling MovePoint (#2794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamemechanicwow authored Oct 6, 2024
1 parent d9c653f commit 8e31f1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/scripts/kalimdor/ashenvale/ashenvale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ struct go_foulweald_totem_moundAI: public GameObjectAI
guidCurrentEnragedFoulweald[i] = foulweald->GetGUID();
float x, y, z;
me->GetPosition(x, y, z);
foulweald->GetMotionMaster()->MovePoint(1, x, y, z, true);
foulweald->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
foulweald->SetHomePosition(x, y, z, 0);
foulweald->SetRespawnDelay(425);
DefineFoulwealdMound(foulweald, me->GetGUID());
Expand Down Expand Up @@ -524,7 +524,7 @@ struct go_foulweald_totem_moundAI: public GameObjectAI
guid = foulweald->GetGUID();
float x, y, z;
me->GetPosition(x, y, z);
foulweald->GetMotionMaster()->MovePoint(1, x, y, z, true);
foulweald->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
foulweald->SetHomePosition(x, y, z, 0);
foulweald->SetRespawnDelay(425);
DefineFoulwealdMound(foulweald, me->GetGUID());
Expand All @@ -551,7 +551,7 @@ struct go_foulweald_totem_moundAI: public GameObjectAI
{
float x, y, z;
me->GetPosition(x, y, z);
murgut->GetMotionMaster()->MovePoint(1, x, y, z, true);
murgut->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
murgut->SetHomePosition(x, y, z, 0);
murgut->SetRespawnDelay(125);
if (GameObject* pGo = me->FindNearestGameObject(GO_KARANG_S_BANNER, 10))
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/kalimdor/feralas/dire_maul/dreadsteed_ritual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ struct go_pedestal_of_immol_tharAI: public GameObjectAI
crea->SetHomePosition(x, y, z, 0);
crea->GetMotionMaster()->Clear();
crea->GetMotionMaster()->Initialize();
crea->GetMotionMaster()->MovePoint(1, x, y, z, true);
crea->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
}
}
void SummonGuard()
Expand All @@ -398,7 +398,7 @@ struct go_pedestal_of_immol_tharAI: public GameObjectAI
crea->SetHomePosition(x, y, z, 0);
crea->GetMotionMaster()->Clear();
crea->GetMotionMaster()->Initialize();
crea->GetMotionMaster()->MovePoint(1, x, y, z, true);
crea->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
}
}
EventLocations spawnPoints[18];//not using m_wait though
Expand Down Expand Up @@ -428,7 +428,7 @@ struct go_pedestal_of_immol_tharAI: public GameObjectAI
crea->SetHomePosition(x, y, z, 0);
crea->GetMotionMaster()->Clear();
crea->GetMotionMaster()->Initialize();
crea->GetMotionMaster()->MovePoint(1, x, y, z, true);
crea->GetMotionMaster()->MovePoint(1, x, y, z, MOVE_PATHFINDING);
}
}
waveTimer = 60000;
Expand Down

0 comments on commit 8e31f1e

Please sign in to comment.