fix(combatlog): distinguish spellsteal from dispel

This commit is contained in:
Kelsi 2026-03-13 19:58:37 -07:00
parent a48eab43b8
commit c45951b368
3 changed files with 22 additions and 3 deletions

View file

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