From 6e03866b56f61755c5491ec4500c41681d2ecc11 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 9 Mar 2026 17:10:57 -0700 Subject: [PATCH] Handle BLOCK (victimState 4) in melee hit combat text Block rolls previously fell through to the damage case and were shown as a 0-damage hit. Now correctly emitted as a BLOCK combat text entry, which renderCombatText already handles with 'Block' / 'You Block' label. --- src/game/game_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index c8862538..29b5e0ba 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -11744,12 +11744,14 @@ void GameHandler::handleAttackerStateUpdate(network::Packet& packet) { addCombatText(CombatTextEntry::DODGE, 0, 0, isPlayerAttacker); } else if (data.victimState == 2) { addCombatText(CombatTextEntry::PARRY, 0, 0, isPlayerAttacker); + } else if (data.victimState == 4) { + addCombatText(CombatTextEntry::BLOCK, 0, 0, isPlayerAttacker); } else { auto type = data.isCrit() ? CombatTextEntry::CRIT_DAMAGE : CombatTextEntry::MELEE_DAMAGE; addCombatText(type, data.totalDamage, 0, isPlayerAttacker); } - (void)isPlayerTarget; // Used for future incoming damage display + (void)isPlayerTarget; } void GameHandler::handleSpellDamageLog(network::Packet& packet) {