Spaces:
Running
Running
Remove redundant availability checks
#1
by mohamedmostafa259 - opened
This PR cleans up redundant logical checks in the LLMAgentBase action selection
Changes Made:
- Removed redundant list lookups: Removed
and chosen_move in battle.available_movesandand chosen_switch in battle.available_switchesinsidechoose_move(). The helper methods_find_move_by_nameand_find_pokemon_by_namealready exclusively return objects from these lists, making the secondary checks unnecessary.