PkmnLib_rs/tests/test_cases/basic_single_turn.yaml

44 lines
846 B
YAML

name: basic_single_turn
battle_setup:
seed: 10
can_flee: false
number_of_sides: 2
pokemon_per_side: 1
parties:
- indices:
- [ 0, 0 ]
pokemon:
- species: charizard
level: 50
moves:
- ember
- indices:
- [ 1, 0 ]
pokemon:
- species: venusaur
level: 50
moves:
- vine_whip
actions:
- set_pokemon:
place: [ 0, 0 ]
from_party: [ 0 ,0 ]
- set_pokemon:
place: [ 1, 0 ]
from_party: [ 1 ,0 ]
- assert:
value:
pokemon_health:
index: [ 1, 0 ]
expected: 140
- set_move_choice:
for: [ 0, 0 ]
move: ember
target: [ 1, 0 ]
- set_pass_choice:
for: [ 1, 0 ]
- assert:
value:
pokemon_health:
index: [ 1, 0 ]
expected: 78