Skip to main content

✅ Get enemy demons

CategoryInteraction
StatusPassing
Testtests/test_targeting.py::test_get_enemy_demons

get_enemy_demons returns demons owned by the opponent only.

Preconditions

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

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

Action

  • get_enemy_demons(state, Side.PLAYER_1)

Expected Postconditions

  • Result contains only Gusion (P2 demon).

  • Length of result is 1.

Assertions

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