Changed ability_uses_this_turn from int to dict[int, int] to track each ability's usage independently: - ability_uses_this_turn: dict[int, int] maps ability index to use count - can_use_ability() now requires ability_index parameter - Added get_ability_uses() and increment_ability_uses() helper methods - reset_turn_state() clears the dict instead of setting to 0 This fixes the bug where using one ability could incorrectly block another ability on the same Pokemon from being used. 789 tests passing. |
||
|---|---|---|
| .. | ||
| test_effects | ||
| test_models | ||
| __init__.py | ||
| conftest.py | ||
| test_config.py | ||
| test_coverage_gaps.py | ||
| test_engine.py | ||
| test_evolution_stack.py | ||
| test_rng.py | ||
| test_rules_validator.py | ||
| test_turn_manager.py | ||
| test_visibility.py | ||
| test_win_conditions.py | ||