Implement some abilities and attract move

This commit is contained in:
Flashfyre committed 2023-05-04 12:57:55 -04:00
1 parent 884c5cc40f
commit d1d65708ce
8 files changed
+426 -40

No files matched your search

+1 -1
View File
@@ -1009,7 +1009,7 @@ export class HeldItemTransferModifier extends PokemonHeldItemModifier {
apply(args: any[]): boolean {
const pokemon = args[0] as Pokemon;
const targetPokemon = pokemon.isPlayer() ? pokemon.scene.getEnemyPokemon() : pokemon.scene.getPlayerPokemon();
const targetPokemon = pokemon.getOpponent();
if (!targetPokemon)
return false;