mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
fix: pass actual GUIDs in SMSG_SPELL_CHANCE_PROC_LOG combat log entries
This commit is contained in:
parent
38111fe8c0
commit
ffef3dda7e
1 changed files with 3 additions and 2 deletions
|
|
@ -6236,7 +6236,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
if (packet.getSize() - packet.getReadPos() < 3) {
|
if (packet.getSize() - packet.getReadPos() < 3) {
|
||||||
packet.setReadPos(packet.getSize()); break;
|
packet.setReadPos(packet.getSize()); break;
|
||||||
}
|
}
|
||||||
/*uint64_t targetGuid =*/ UpdateObjectParser::readPackedGuid(packet);
|
uint64_t procTargetGuid = UpdateObjectParser::readPackedGuid(packet);
|
||||||
if (packet.getSize() - packet.getReadPos() < 2) {
|
if (packet.getSize() - packet.getReadPos() < 2) {
|
||||||
packet.setReadPos(packet.getSize()); break;
|
packet.setReadPos(packet.getSize()); break;
|
||||||
}
|
}
|
||||||
|
|
@ -6247,7 +6247,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
uint32_t procSpellId = packet.readUInt32();
|
uint32_t procSpellId = packet.readUInt32();
|
||||||
// Show a "PROC!" floating text when the player triggers the proc
|
// Show a "PROC!" floating text when the player triggers the proc
|
||||||
if (procCasterGuid == playerGuid && procSpellId > 0)
|
if (procCasterGuid == playerGuid && procSpellId > 0)
|
||||||
addCombatText(CombatTextEntry::PROC_TRIGGER, 0, procSpellId, true);
|
addCombatText(CombatTextEntry::PROC_TRIGGER, 0, procSpellId, true, 0,
|
||||||
|
procCasterGuid, procTargetGuid);
|
||||||
packet.setReadPos(packet.getSize());
|
packet.setReadPos(packet.getSize());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue