✅ Remove effects by target
| Category | Ability |
| Status | Passing |
| Test | tests/test_status_effects.py::test_remove_effects_by_target |
Duban has 2 effects, Gusion has 1 effect.
Preconditions
-
phase_counter=1
-
Lane 0: P2's Duban (#001) — with 2 effects
-
Lane 1: P2's Gusion (#019) — with 1 effect
Action
- remove_effects_by_target(state, duban)
Expected Postconditions
-
Only 1 status effect remains in state.status_effects
-
The remaining effect targets Gusion (not Duban)
-
Original state still has 3 effects (copy-on-write)
Assertions
assert len(result_state.status_effects) == 1
assert result_state.status_effects[0].target_instance_id == gusion.instance_id