Fixed move effectiveness test to assign mons to scene.field

This commit is contained in:
Wlowscha 2024-12-27 11:35:07 +01:00
parent 10e0f9f0de
commit 2f4183c57c
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -21,6 +21,8 @@ function testMoveEffectiveness(game: GameManager, move: Moves, targetSpecies: Sp
const user = game.scene.addPlayerPokemon(getPokemonSpecies(Species.SNORLAX), 5); const user = game.scene.addPlayerPokemon(getPokemonSpecies(Species.SNORLAX), 5);
const target = game.scene.addEnemyPokemon(getPokemonSpecies(targetSpecies), 5, TrainerSlot.NONE); const target = game.scene.addEnemyPokemon(getPokemonSpecies(targetSpecies), 5, TrainerSlot.NONE);
game.scene.field.add(user);
game.scene.field.add(target);
if (teraType !== undefined) { if (teraType !== undefined) {
overrideHeldItems(game.scene, target, false); overrideHeldItems(game.scene, target, false);