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:
Ovahlord
2020-08-24 02:04:54 +02:00
parent 47ac0004c2
commit 5f24181ebd

View File

@@ -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);