mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: surface absorb/resist in SMSG_ENVIRONMENTAL_DAMAGE_LOG (Classic/TBC)
The Classic/TBC variant handler was discarding the resisted field entirely (only reading absorbed but discarding it). Now reads and shows both as ABSORB/RESIST combat text, matching the WotLK SMSG_ENVIRONMENTALDAMAGELOG fix from the previous commit.
This commit is contained in:
parent
00db93b7f2
commit
84a6ee4801
1 changed files with 10 additions and 3 deletions
|
|
@ -3573,9 +3573,16 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint64_t victimGuid = packet.readUInt64();
|
||||
/*uint8_t envType =*/ packet.readUInt8();
|
||||
uint32_t dmg = packet.readUInt32();
|
||||
/*uint32_t abs =*/ packet.readUInt32();
|
||||
if (victimGuid == playerGuid && dmg > 0)
|
||||
uint32_t envAbs = packet.readUInt32();
|
||||
uint32_t envRes = packet.readUInt32();
|
||||
if (victimGuid == playerGuid) {
|
||||
if (dmg > 0)
|
||||
addCombatText(CombatTextEntry::ENVIRONMENTAL, static_cast<int32_t>(dmg), 0, false);
|
||||
if (envAbs > 0)
|
||||
addCombatText(CombatTextEntry::ABSORB, static_cast<int32_t>(envAbs), 0, false);
|
||||
if (envRes > 0)
|
||||
addCombatText(CombatTextEntry::RESIST, static_cast<int32_t>(envRes), 0, false);
|
||||
}
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue