mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
fix(combatlog): log outgoing proc resist events
This commit is contained in:
parent
91dc45d19e
commit
1214369755
1 changed files with 4 additions and 1 deletions
|
|
@ -2066,8 +2066,11 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint64_t victim = readPrGuid();
|
||||
if (packet.getSize() - packet.getReadPos() < 4) break;
|
||||
uint32_t spellId = packet.readUInt32();
|
||||
if (victim == playerGuid)
|
||||
if (victim == playerGuid) {
|
||||
addCombatText(CombatTextEntry::RESIST, 0, spellId, false, 0, caster, victim);
|
||||
} else if (caster == playerGuid) {
|
||||
addCombatText(CombatTextEntry::RESIST, 0, spellId, true, 0, caster, victim);
|
||||
}
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue