fix(stats): channel-energy heal is no longer counted as damage_dealt (attrition tracks damage only, README 'dégâts infligés/subis'; consistent with spell HealEffect which is counted nowhere) - harm mode still records damage_dealt/damage_taken, pinned by new tests

This commit is contained in:
2026-09-19 16:52:04 +02:00
parent 24e208ea41
commit 2e2873f331
2 changed files with 40 additions and 1 deletions
+3 -1
View File
@@ -5652,7 +5652,9 @@ class CombatEngine:
if affected_state.hp < 0:
affected_state.stabilized_hp = affected_state.hp
actual = affected_state.hp - old_hp
self._stats[state.combatant.id].damage_dealt += actual
# Healing is NOT damage dealt: the attrition counters track damage only
# (README "degats infligés/subis"), consistent with spell healing
# (HealEffect), which is counted nowhere.
self._stop_bleeding(affected_state)
self._log(
f"round {self._current_round} {state.combatant.id}: "