mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-18 01:53:51 +00:00
fix(combatlog): parse classic dispel failed GUIDs as packed
This commit is contained in:
parent
1fa2cbc64e
commit
bd8c46fa49
1 changed files with 5 additions and 3 deletions
|
|
@ -3239,12 +3239,14 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
case Opcode::SMSG_DISPEL_FAILED: {
|
case Opcode::SMSG_DISPEL_FAILED: {
|
||||||
// WotLK: uint32 dispelSpellId + packed_guid caster + packed_guid victim
|
// WotLK: uint32 dispelSpellId + packed_guid caster + packed_guid victim
|
||||||
// [+ count × uint32 failedSpellId]
|
// [+ count × uint32 failedSpellId]
|
||||||
// TBC/Classic: uint64 caster + uint64 victim + uint32 spellId
|
// Classic: uint32 dispelSpellId + packed_guid caster + packed_guid victim
|
||||||
// [+ count × uint32 failedSpellId]
|
// [+ count × uint32 failedSpellId]
|
||||||
const bool dispelTbcLike = isClassicLikeExpansion() || isActiveExpansion("tbc");
|
// TBC: uint64 caster + uint64 victim + uint32 spellId
|
||||||
|
// [+ count × uint32 failedSpellId]
|
||||||
|
const bool dispelUsesFullGuid = isActiveExpansion("tbc");
|
||||||
uint32_t dispelSpellId = 0;
|
uint32_t dispelSpellId = 0;
|
||||||
uint64_t dispelCasterGuid = 0;
|
uint64_t dispelCasterGuid = 0;
|
||||||
if (dispelTbcLike) {
|
if (dispelUsesFullGuid) {
|
||||||
if (packet.getSize() - packet.getReadPos() < 20) break;
|
if (packet.getSize() - packet.getReadPos() < 20) break;
|
||||||
dispelCasterGuid = packet.readUInt64();
|
dispelCasterGuid = packet.readUInt64();
|
||||||
/*uint64_t victim =*/ packet.readUInt64();
|
/*uint64_t victim =*/ packet.readUInt64();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue