Skip to main content

✅ Decarabia allows ally ability movement

CategoryAbility
StatusPassing
Testtests/test_abilities_passive.py::test_decarabia_allows_ally_ability_movement

P1's ally uses an ability to move P1's Decarabia. This is allowed

Preconditions

  • Lane 0: P1's Decarabia (#008)

  • Decarabia passive: "Enemy Demons cannot move Decarabia"

Action

  • P1 (ally) uses _move_to_lane to move Decarabia to lane 2, mover_side=P1
result = _move_to_lane(state, dec_p, 2, mover_side=Side.PLAYER_1)

dec_after = next(d for d in result.demons if d.unit_id == "008")

Expected Postconditions

  • Decarabia moves to lane 2 (ally movement allowed)

Assertions

assert dec_after.lane == 2, (
f"Decarabia should move to lane 2 — ally movement allowed. Got lane {dec_after.lane}"
)