Implement some abilities and attract move
This commit is contained in:
1 parent
884c5cc40f
commit
d1d65708ce
8 files changed
+426
-40
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user