fix(combatlog): reject truncated instakill logs without spell id

This commit is contained in:
Kelsi 2026-03-14 14:51:27 -07:00
parent 83a368aa85
commit 385ac1e66c

View file

@ -6527,7 +6527,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
}
uint64_t ikVictim = ikUsesFullGuid
? packet.readUInt64() : UpdateObjectParser::readPackedGuid(packet);
uint32_t ikSpell = (ik_rem() >= 4) ? packet.readUInt32() : 0;
if (ik_rem() < 4) {
packet.setReadPos(packet.getSize()); break;
}
uint32_t ikSpell = packet.readUInt32();
// Show kill/death feedback for the local player
if (ikCaster == playerGuid) {
addCombatText(CombatTextEntry::INSTAKILL, 0, ikSpell, true, 0, ikCaster, ikVictim);