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:
@@ -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}: "
|
||||
|
||||
Reference in New Issue
Block a user