feat(Core/Position): own file (#10505)

This commit is contained in:
IntelligentQuantum
2022-02-08 11:42:42 +03:30
committed by GitHub
parent b0b9fece99
commit 93520f6466
15 changed files with 561 additions and 496 deletions

View File

@@ -133,7 +133,7 @@ public:
// Teleports a random player and spawns 9 Sacrificed Trolls to attack player
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0))
{
DoTeleportPlayer(target, TeleportLoc.m_positionX, TeleportLoc.m_positionY, TeleportLoc.m_positionZ, TeleportLoc.m_orientation);
DoTeleportPlayer(target, TeleportLoc.m_positionX, TeleportLoc.m_positionY, TeleportLoc.m_positionZ, TeleportLoc.GetOrientation());
if (DoGetThreat(me->GetVictim()))
DoModifyThreatPercent(target, -100);
Creature* SacrificedTroll;

View File

@@ -319,7 +319,7 @@ public:
case EVENT_SPAWN_WAVE_1:
{
Position spawnPos = c->GetPosition();
spawnPos.m_orientation = 5.80f;
spawnPos.SetOrientation(5.80f);
spawnPos.m_positionX += 5.0f * cos(4.5f);
spawnPos.m_positionY += 5.0f * std::sin(4.5f);
for (uint8 i = 0; i < 5; ++i)
@@ -333,7 +333,7 @@ public:
case EVENT_SPAWN_WAVE_2:
{
Position spawnPos = c->GetPosition();
spawnPos.m_orientation = 5.80f;
spawnPos.SetOrientation(5.80f);
spawnPos.m_positionX += 7.0f * cos(4.0f);
spawnPos.m_positionY += 7.0f * std::sin(4.0f);
for (uint8 i = 0; i < 3; ++i)
@@ -348,7 +348,7 @@ public:
case EVENT_SPAWN_WAVE_3:
{
Position spawnPos = c->GetPosition();
spawnPos.m_orientation = 5.80f;
spawnPos.SetOrientation(5.80f);
spawnPos.m_positionX += 8.0f * cos(4.0f);
spawnPos.m_positionY += 8.0f * std::sin(4.0f);
for (uint8 i = 0; i < 3; ++i)