mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: pass power type from POWER_DRAIN energize to color-code combat text
SMSG_SPELLLOGEXECUTE POWER_DRAIN reads drainPower but was not passing it to addCombatText, so drained-resource returns showed as blue (mana) even for rage or energy. Now correctly colored following the energize palette added in the earlier commit.
This commit is contained in:
parent
43b007cdcd
commit
156ddfad9a
1 changed files with 2 additions and 1 deletions
|
|
@ -6203,7 +6203,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
if (drainTarget == playerGuid)
|
||||
addCombatText(CombatTextEntry::PERIODIC_DAMAGE, static_cast<int32_t>(drainAmount), exeSpellId, false);
|
||||
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));
|
||||
}
|
||||
LOG_DEBUG("SMSG_SPELLLOGEXECUTE POWER_DRAIN: spell=", exeSpellId,
|
||||
" power=", drainPower, " amount=", drainAmount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue