Jump to content

[FIX] Spawn The Eye Objects in Arena


Auntie Mangos

Recommended Posts

  • 40 years later...

Spawn of eyes after 60 seconds of fight

diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index e1a6408..a372491 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -229,6 +229,8 @@ BattleGround::BattleGround()
    m_LevelMax          = 0;
    m_InBGFreeSlotQueue = false;

+    m_ArenaBuffTimer    = 0;
+
    m_MaxPlayersPerTeam = 0;
    m_MaxPlayers        = 0;
    m_MinPlayersPerTeam = 0;
@@ -399,11 +401,11 @@ void BattleGround::Update(uint32 diff)
    if (isArena() && !m_ArenaBuffSpawned)
    {
        // 60 seconds after start the buffobjects in arena should get spawned
-        if (m_StartTime > uint32(m_StartDelayTimes[bG_STARTING_EVENT_FIRST] + ARENA_SPAWN_BUFF_OBJECTS))
+        if (m_ArenaBuffTimer > uint32(m_StartDelayTimes[bG_STARTING_EVENT_FIRST] + ARENA_SPAWN_BUFF_OBJECTS))
        {
            SpawnEvent(ARENA_BUFF_EVENT, 0, true);
            m_ArenaBuffSpawned = true;
-        }
+         } else m_ArenaBuffTimer += diff;
    }

    /*********************************************************/
diff --git a/src/game/BattleGround.h b/src/game/BattleGround.h
index 92a590f..0d917c6 100644
--- a/src/game/BattleGround.h
+++ b/src/game/BattleGround.h
@@ -599,6 +599,7 @@ class BattleGround
        uint8  m_ArenaType;                                 // 2=2v2, 3=3v3, 5=5v5
        bool   m_InBGFreeSlotQueue;                         // used to make sure that BG is only once inserted into the BattleGroundMgr.BGFreeSlotQueue[bgTypeId] deque
        bool   m_IsArena;
+        uint32 m_ArenaBuffTimer;
        uint8  m_Winner;                                    // 0=alliance, 1=horde, 2=none
        int32  m_StartDelayTime;
        bool   m_IsRated;                                   // is this battle rated?

SQL

UPDATE `gameobject_battleground` SET
`event1` = 252
WHERE `guid` IN (90108, 90107, 90114, 90118, 90117, 90113);

Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use