mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +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) {
|
||||
packet.setReadPos(packet.getSize()); break;
|
||||
}
|
||||
/*uint64_t targetGuid =*/ UpdateObjectParser::readPackedGuid(packet);
|
||||
uint64_t procTargetGuid = UpdateObjectParser::readPackedGuid(packet);
|
||||
if (packet.getSize() - packet.getReadPos() < 2) {
|
||||
packet.setReadPos(packet.getSize()); break;
|
||||
}
|
||||
|
|
@ -6247,7 +6247,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint32_t procSpellId = packet.readUInt32();
|
||||
// Show a "PROC!" floating text when the player triggers the proc
|
||||
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());
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue