mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
fix(combatlog): target drain and leech self-gain events correctly
This commit is contained in:
parent
6af9f90f45
commit
db681ec4c6
1 changed files with 2 additions and 2 deletions
|
|
@ -6344,7 +6344,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
exeCaster, drainTarget);
|
exeCaster, drainTarget);
|
||||||
else if (isPlayerCaster)
|
else if (isPlayerCaster)
|
||||||
addCombatText(CombatTextEntry::ENERGIZE, static_cast<int32_t>(drainAmount), exeSpellId, true,
|
addCombatText(CombatTextEntry::ENERGIZE, static_cast<int32_t>(drainAmount), exeSpellId, true,
|
||||||
static_cast<uint8_t>(drainPower), exeCaster, drainTarget);
|
static_cast<uint8_t>(drainPower), exeCaster, exeCaster);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("SMSG_SPELLLOGEXECUTE POWER_DRAIN: spell=", exeSpellId,
|
LOG_DEBUG("SMSG_SPELLLOGEXECUTE POWER_DRAIN: spell=", exeSpellId,
|
||||||
" power=", drainPower, " amount=", drainAmount);
|
" power=", drainPower, " amount=", drainAmount);
|
||||||
|
|
@ -6365,7 +6365,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
exeCaster, leechTarget);
|
exeCaster, leechTarget);
|
||||||
else if (isPlayerCaster)
|
else if (isPlayerCaster)
|
||||||
addCombatText(CombatTextEntry::HEAL, static_cast<int32_t>(leechAmount), exeSpellId, true, 0,
|
addCombatText(CombatTextEntry::HEAL, static_cast<int32_t>(leechAmount), exeSpellId, true, 0,
|
||||||
exeCaster, leechTarget);
|
exeCaster, exeCaster);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("SMSG_SPELLLOGEXECUTE HEALTH_LEECH: spell=", exeSpellId, " amount=", leechAmount);
|
LOG_DEBUG("SMSG_SPELLLOGEXECUTE HEALTH_LEECH: spell=", exeSpellId, " amount=", leechAmount);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue