Skip to main content

✅ Get allied demons

CategoryInteraction
StatusPassing
Testtests/test_targeting.py::test_get_allied_demons

get_allied_demons returns all demons owned by the specified side.

Preconditions

  • P1 owns Duban (#001) in lane 0 and Andras (#093) in lane 1.

  • P2 owns Gusion (#105) in lane 0.

Action

  • get_allied_demons(state, Side.PLAYER_1)

Expected Postconditions

  • Result contains Duban and Andras (both P1 demons).

  • Result does NOT contain Gusion (P2 demon).

  • Length of result is 2.

Assertions

assert len(result) == 2
assert "001" in result_ids
assert "105" not in result_ids