From 38111fe8c03977c1c97d57760bd4478977639306 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 13 Mar 2026 11:55:23 -0700 Subject: [PATCH] fix: pass actual GUIDs in SMSG_SPELLLOGEXECUTE power drain and health leech combat log entries --- src/game/game_handler.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 9baf5247..5b293023 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -6320,10 +6320,11 @@ void GameHandler::handlePacket(network::Packet& packet) { /*float drainMult =*/ packet.readFloat(); if (drainAmount > 0) { if (drainTarget == playerGuid) - addCombatText(CombatTextEntry::PERIODIC_DAMAGE, static_cast(drainAmount), exeSpellId, false); + addCombatText(CombatTextEntry::PERIODIC_DAMAGE, static_cast(drainAmount), exeSpellId, false, 0, + exeCaster, drainTarget); else if (isPlayerCaster) addCombatText(CombatTextEntry::ENERGIZE, static_cast(drainAmount), exeSpellId, true, - static_cast(drainPower)); + static_cast(drainPower), exeCaster, drainTarget); } LOG_DEBUG("SMSG_SPELLLOGEXECUTE POWER_DRAIN: spell=", exeSpellId, " power=", drainPower, " amount=", drainAmount); @@ -6340,9 +6341,11 @@ void GameHandler::handlePacket(network::Packet& packet) { /*float leechMult =*/ packet.readFloat(); if (leechAmount > 0) { if (leechTarget == playerGuid) - addCombatText(CombatTextEntry::SPELL_DAMAGE, static_cast(leechAmount), exeSpellId, false); + addCombatText(CombatTextEntry::SPELL_DAMAGE, static_cast(leechAmount), exeSpellId, false, 0, + exeCaster, leechTarget); else if (isPlayerCaster) - addCombatText(CombatTextEntry::HEAL, static_cast(leechAmount), exeSpellId, true); + addCombatText(CombatTextEntry::HEAL, static_cast(leechAmount), exeSpellId, true, 0, + exeCaster, leechTarget); } LOG_DEBUG("SMSG_SPELLLOGEXECUTE HEALTH_LEECH: spell=", exeSpellId, " amount=", leechAmount); }