mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 16:30:15 +00:00
fix(combatlog): distinguish spellsteal from dispel
This commit is contained in:
parent
a48eab43b8
commit
c45951b368
3 changed files with 22 additions and 3 deletions
|
|
@ -6240,10 +6240,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
std::snprintf(buf, sizeof(buf), "%s was stolen.", stolenName.c_str());
|
||||
addSystemChatMessage(buf);
|
||||
}
|
||||
// Add dispel/steal to combat log using DISPEL type (isStolen=true for steals)
|
||||
// Preserve spellsteal as a distinct event so the UI wording stays accurate.
|
||||
if (firstStolenId != 0) {
|
||||
bool isPlayerCaster = (stealCaster == playerGuid);
|
||||
addCombatText(CombatTextEntry::DISPEL, 0, firstStolenId, isPlayerCaster, 0,
|
||||
addCombatText(CombatTextEntry::STEAL, 0, firstStolenId, isPlayerCaster, 0,
|
||||
stealCaster, stealVictim);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue