mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
feat(Core/Position): own file (#10505)
This commit is contained in:
committed by
GitHub
parent
b0b9fece99
commit
93520f6466
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user