mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Combat: corrected threat amount sent in threat update packets
* for some reason blizzard sometimes sends 99 values instead of round 100ish values which made it look a bit weird
This commit is contained in:
@@ -780,7 +780,7 @@ void ThreatManager::SendThreatListToClients(bool newHighest) const
|
||||
|
||||
WorldPackets::Combat::ThreatInfo info;
|
||||
info.UnitGUID = ref->GetVictim()->GetGUID();
|
||||
info.Threat = uint32(ref->GetThreat());
|
||||
info.Threat = uint32(ref->GetThreat() * 100);
|
||||
packet.ThreatList.push_back(info);
|
||||
}
|
||||
_owner->SendMessageToSet(packet.Write(), false);
|
||||
@@ -797,7 +797,7 @@ void ThreatManager::SendThreatListToClients(bool newHighest) const
|
||||
|
||||
WorldPackets::Combat::ThreatInfo info;
|
||||
info.UnitGUID = ref->GetVictim()->GetGUID();
|
||||
info.Threat = uint32(ref->GetThreat());
|
||||
info.Threat = uint32(ref->GetThreat() * 100);
|
||||
packet.ThreatList.push_back(info);
|
||||
}
|
||||
_owner->SendMessageToSet(packet.Write(), false);
|
||||
|
||||
Reference in New Issue
Block a user