✅ Taurus does not apply def for zero damage
| Category | Ability |
| Status | Passing |
| Test | tests/test_abilities_passive.py::test_taurus_does_not_apply_def_for_zero_damage |
Demon takes 0 effective damage — Taurus does NOT apply +2 DEF.
Preconditions
- Lane 0: P1's Taurus (#052), Lane 0: P2's Duban (#001)
Action
- Fire DAMAGE_RECEIVED event: target=Duban, value=0
from engine.events import GameEvent, EventType, fire_event
from engine.operations import get_effective_def
state = make_game_state()
taurus = make_demon("052", lane=0, owner=Side.PLAYER_1)
duban = make_demon("001", lane=0, owner=Side.PLAYER_2)
state = place_demon(state, taurus)
state = place_demon(state, duban)
duban_on_field = next(d for d in state.demons if d.unit_id == "001")
event = GameEvent(
event_type=EventType.DAMAGE_RECEIVED,
source=None,
target=duban_on_field,
value=0, # 0 effective damage
side=Side.PLAYER_2,
lane=0,
)
new_state = fire_event(state, event)
duban_after = next(d for d in new_state.demons if d.unit_id == "001")
result = get_effective_def(new_state, duban_after)
Expected Postconditions
-
Duban has NO Taurus status (0 damage threshold not met)
-
Duban effective DEF = 5 (passive only)
Assertions
assert result == 5, (
f"Expected Duban DEF=5 (0 damage triggers nothing), got {result}"
)