mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Threat: only send periodic threat list updates while unit is engaged
(cherry picked from commit a08ad9aac1)
This commit is contained in:
@@ -173,6 +173,8 @@ void ThreatManager::Initialize()
|
||||
|
||||
void ThreatManager::Update(uint32 tdiff)
|
||||
{
|
||||
if (!CanHaveThreatList() || !IsEngaged())
|
||||
return;
|
||||
if (_updateClientTimer <= tdiff)
|
||||
{
|
||||
_updateClientTimer = CLIENT_THREAT_UPDATE_INTERVAL;
|
||||
|
||||
Reference in New Issue
Block a user