Skip to main content

✅ Deploy demon

CategoryAbility
StatusPassing
Testtests/test_operations.py::test_deploy_demon

P1 deploys Duban (#001) from hand to lane 0.

Preconditions

  • P1 Main Phase

  • P1 hand: ["001"]

  • No demons on the field

  • P1 AP: 3, P1 CP: 0

Action

  • P1 deploys unit_id "001" (Duban) to lane 0

Expected Postconditions

  • Duban is now on the field in lane 0, READIED, 0 damage

  • Duban.current_hp = 6

  • P1 hand is now empty

  • state.demons has exactly 1 entry

Assertions

assert len(new_state.demons) == 1
assert demon.unit_id == "001"
assert demon.lane == 0
assert demon.state == DemonState.READIED
assert "001" not in new_state.players[Side.PLAYER_1].hand