Skip to main content

✅ Gomita does not fire for opponent

CategoryAbility
StatusPassing
Testtests/test_abilities_complex.py::TestGomitaTimeTokenHeal::test_gomita_does_not_fire_for_opponent

P2 gains Time Token while Gomita belongs to P1.

Preconditions

  • Lane 0: P1's Gomita (#035, PWR=3)

  • Lane 0: P2's Duban (#001, 5 damage) [enemy of Gomita's owner]

Action

  • apply_gomita_time_token_heal(state, Side.PLAYER_2)
result = apply_gomita_time_token_heal(state, Side.PLAYER_2)

duban_after = next(d for d in result.demons if d.unit_id == "001")

Expected Postconditions

  • Duban: 5 damage unchanged (Gomita belongs to P1, not P2)

Assertions

assert duban_after.damage == 5, (
f"P2 enemy unchanged — Gomita belongs to P1. Got {duban_after.damage}."
)