✅ Deal damage reduced by def
| Category | Ability |
| Status | Passing |
| Test | tests/test_operations.py::test_deal_damage_reduced_by_def |
Dealing 4 damage to a target with +3 DEF results in 1 effective damage.
Preconditions
-
Lane 0: P2's Duban (#001) — 6 HP, 0 damage, READIED
-
P2 has an active status effect: +3 DEF on Duban
-
P1's Sabnock (#003) is the source (lane 0)
Action
- deal_damage(state, source=Sabnock, target=Duban, amount=4)
Expected Postconditions
-
effective_damage = max(0, 4 - 3) = 1
-
Duban.damage = 1 (was 0)
Assertions
assert damaged_target.damage == 1