def self.brock_figth
trainer_party = []
brock_onix_data = {
species: :ONIX,
level: 14,
nickname: "Goliath",
item: :BERRYJUICE,
moves: [:ROCKTOMB, :BIND, :ROCKTHROW, :HARDEN],
types: [:STEEL, :GHOST],
base_stats: { defense: 200, attack: 60 }
}
# geodude_data= {}
# The Onix is created and added to the team.
trainer_party.push(ZBox::PokemonFactory.create(brock_onix_data))
# More Pokémon can be added if needed.
# trainer_party.push(ZBox::PokemonFactory.create(geodude_data))
trainer = pbLoadTrainer(:LEADER_Brock, "Brock")
# The team we just created is assigned.
trainer.party = trainer_party
# The battle is started using the Trainer object we have prepared.
TrainerBattle.start(trainer)
end