Skip to main content

✅ Barbas faith applies def buff to target

CategoryAbility
StatusPassing
Testtests/test_abilities_actions.py::test_barbas_faith_applies_def_buff_to_target

Barbas's Faith gives +3 DEF to target other demon.

Preconditions

  • P1 Main Phase, P1 has 3 AP

  • Lane 0: P1's Barbas (#049) — READIED

  • Lane 1: P1's Sabnock (#003) — READIED (target other demon)

Action

  • Execute Barbas's Faith (ability idx=0, Quick, 1 AP, ready, 1x) targeting Sabnock
result = execute_ability(state, barbas_on_field, ability_idx=0, targets=[sabnock_on_field])
effects = {e.stat: e.value for e in get_active_effects_on(result, sabnock_after)}

Expected Postconditions

  • Sabnock: has status "def" +3

  • Barbas: NOT exhausted (ready cost)

  • P1 AP: 2 (spent 1)

Assertions

assert effects.get("def") == 3
assert barbas_after.state == DemonState.READIED
assert result.players[Side.PLAYER_1].ap == 2