mantimon-tcg/backend
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
..
app Add knockout detection to damage effect handlers (Issue #13) 2026-01-26 11:44:38 -06:00
references Adding manual test file for reference 2026-01-25 14:11:42 -06:00
tests Add knockout detection to damage effect handlers (Issue #13) 2026-01-26 11:44:38 -06:00
.gitignore Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
.python-version Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
PROJECT_PLAN_ENERGY_EVOLUTION.md Implement energy/tools as CardInstance + evolution stack + devolve effect 2026-01-25 23:09:40 -06:00
PROJECT_PLAN.json Add GameEngine orchestrator with full game lifecycle support 2026-01-25 13:21:41 -06:00
pyproject.toml Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00
SYSTEM_REVIEW.md Add knockout detection to damage effect handlers (Issue #13) 2026-01-26 11:44:38 -06:00
uv.lock Add backend foundation with uv, Black, and pre-commit hooks 2026-01-24 00:12:33 -06:00