Skip to main content

✅ Remove damage blocked by kimaris same lane ally

CategoryAbility
StatusPassing
Testtests/test_operations.py::test_remove_damage_blocked_by_kimaris_same_lane_ally

Kimaris's anti-heal also blocks healing of allies in his lane —

Preconditions

  • Lane 1: P1's Kimaris (#057) — 15 HP, 0 damage, READIED

  • Lane 1: P1's Duban (#001) — 6 HP, 4 damage, READIED (allied!)

Action

  • remove_damage(state, target=Duban, amount=2)
state = make_game_state()
kimaris = make_demon("057", lane=1, owner=Side.PLAYER_1, instance_id=1)
duban = make_demon("001", lane=1, owner=Side.PLAYER_1, instance_id=2, damage=4)
state = place_demon(state, kimaris)
state = place_demon(state, duban)

duban_placed = next(d for d in state.demons if d.unit_id == "001")
new_state = remove_damage(state, duban_placed, 2)

duban_after = next(d for d in new_state.demons if d.unit_id == "001")

Expected Postconditions

  • Duban.damage = 4 (heal blocked — allies are also "Other" demons)

Assertions

assert duban_after.damage == 4, "Ally heal must also be blocked (Other includes allies)"