Skip to main content

✅ Furcas cannot be moved by enemy

CategoryAbility
StatusPassing
Testtests/test_abilities_passive.py::test_furcas_cannot_be_moved_by_enemy

can_be_moved_by() returns False when an enemy tries to move

Preconditions

  • P1's Furcas (#059) on field

  • Furcas passive: cannot_be_moved_by_enemy = 1

Action

  • can_be_moved_by(state, furcas, mover_side=P2)
from engine.abilities_passive import can_be_moved_by

state = make_game_state()
furcas = make_demon("059", lane=0, owner=Side.PLAYER_1)
state = place_demon(state, furcas)
furcas_p = state.demons[0]

Expected Postconditions

  • Returns False (enemy cannot move Furcas)

Assertions

assert can_be_moved_by(state, furcas_p, Side.PLAYER_2) is False, (
"Enemy should NOT be able to move Furcas"
)
assert can_be_moved_by(state, furcas_p, Side.PLAYER_1) is True, (
"Ally should be able to move Furcas"
)