mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/BG: Fix a logic mistake in ResetStat timer
It should only be executed every 5 seconds, not in every update
This commit is contained in:
@@ -426,7 +426,7 @@ inline void Battleground::_ProcessJoin(uint32 diff)
|
||||
// *********************************************************
|
||||
ModifyStartDelayTime(diff);
|
||||
|
||||
if (m_ResetStatTimer <= 5000)
|
||||
if (m_ResetStatTimer > 5000)
|
||||
{
|
||||
m_ResetStatTimer = 0;
|
||||
for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
|
||||
|
||||
Reference in New Issue
Block a user