mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
fix(combatlog): reject truncated instakill logs without spell id
This commit is contained in:
parent
83a368aa85
commit
385ac1e66c
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue