✅ Buer heal not applied to enemies
| Category | Ability |
| Status | Passing |
| Test | tests/test_abilities_passive.py::test_buer_heal_not_applied_to_enemies |
Buer's exhaust heal only applies to LOCAL ALLIED demons.
Preconditions
-
Lane 0: P1's Buer (#014) — READIED, base PWR=3
-
Lane 0: P2's Duban (#001) — 5 damage (enemy)
Action
- Fire DEMON_EXHAUSTED event with source=Buer
from engine.events import GameEvent, EventType, fire_event
state = make_game_state()
buer = make_demon("014", lane=0, owner=Side.PLAYER_1)
enemy_duban = make_demon("001", lane=0, owner=Side.PLAYER_2, damage=5)
state = place_demon(state, buer)
state = place_demon(state, enemy_duban)
buer_on_field = next(d for d in state.demons if d.unit_id == "014")
event = GameEvent(
event_type=EventType.DEMON_EXHAUSTED,
source=buer_on_field,
target=None,
value=None,
side=Side.PLAYER_1,
lane=0,
)
new_state = fire_event(state, event)
enemy_after = next(d for d in new_state.demons if d.owner == Side.PLAYER_2)
Expected Postconditions
- Enemy Duban's damage unchanged: still 5
Assertions
assert enemy_after.damage == 5, (
f"Expected enemy damage=5 (Buer heal is allied-only), got {enemy_after.damage}"
)