mantimon-tcg/backend/tests/core
Cal Corum 1fbd3d1cfa Add knockout detection to damage effect handlers (Issue #13)
Both deal_damage and attack_damage now check if the target is knocked out
after applying damage. If KO'd, EffectResult includes:
- details['knockout'] = True
- details['knockout_pokemon_id'] = target's instance_id
- Message includes 'knocked out!' notification

Knockout check correctly respects HP modifiers via effective_hp().

Added 9 tests covering knockout detection, HP modifier behavior,
weakness-triggered knockouts, and resistance preventing knockouts.
2026-01-26 11:44:38 -06:00
..
test_effects Add knockout detection to damage effect handlers (Issue #13) 2026-01-26 11:44:38 -06:00
test_models Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
__init__.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
conftest.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
test_config.py Add rules validator, win conditions checker, and coverage gap tests 2026-01-25 12:57:06 -06:00
test_coverage_gaps.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
test_engine.py Track stadium ownership for correct discard (Issue #12) 2026-01-26 11:38:38 -06:00
test_evolution_stack.py Add CardDefinition validation for required fields (Issue #2) 2026-01-26 10:28:37 -06:00
test_rng.py Add game engine foundation: enums, config, and RNG modules 2026-01-24 22:14:45 -06:00
test_rules_validator.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
test_turn_manager.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
test_visibility.py Add forced action queue for double knockouts (Issue #10) 2026-01-26 11:33:47 -06:00
test_win_conditions.py Add SelectPrizeAction executor and turn limit check (Issues #11, #15) 2026-01-26 11:04:03 -06:00