fix(combat): channel energy targets living vs undead
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user