✅ Deal damage minimum zero
| Category | Ability |
| Status | Passing |
| Test | tests/test_operations.py::test_deal_damage_minimum_zero |
Dealing 4 damage to a target with +10 DEF results in 0 effective damage.
Preconditions
-
Lane 1: P2's Duban (#001) — 6 HP, 0 damage, READIED
-
Duban has active status effect: +10 DEF
-
P1's Murmur (#002) is the source (lane 1)
Action
- deal_damage(state, source=Murmur, target=Duban, amount=4)
Expected Postconditions
-
effective_damage = max(0, 4 - 10) = 0
-
Duban.damage = 0 (unchanged)
Assertions
assert damaged_target.damage == 0