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); }