Some more functionality for battling, check if choice is valid, implement target resolvers.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-14 19:11:24 +02:00
parent 8746f03500
commit a33369afcc
8 changed files with 305 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ pub struct ExecutingMove<'a, 'b> {
number_of_hits: u8,
hits: Vec<HitData>,
user: &'a Pokemon<'b>,
chosen_move: &'a LearnedMove,
chosen_move: &'a LearnedMove<'a>,
use_move: &'a MoveData,
script: ScriptContainer,
targets: Vec<Option<&'a Pokemon<'b>>>,