fix(combat): channel energy targets living vs undead

This commit is contained in:
2026-09-05 00:16:17 +02:00
parent 7591614460
commit 22d76e9677
7 changed files with 124 additions and 27 deletions
+2 -2
View File
@@ -35,9 +35,9 @@ def _make_grid() -> Grid:
def _make_channel_policy(_engine: CombatEngine, state: CombatantState) -> tuple[Action, ...]:
"""Emit a channel_energy on an alpha, otherwise the default policy."""
"""Emit a channel_energy (heal mode) on an alpha, otherwise the default policy."""
if state.combatant.id == "oni-a":
return (Action(kind="channel_energy", target_id="oni-b"),)
return (Action(kind="channel_energy", target_id="oni-b", channel_mode="heal"),)
return default_policy(_engine, state)