java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.BallFetch
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable

public class BallFetch extends AbstractAbility
At any time after the first Poké Ball is thrown and fails to catch a Pokémon, at the end of a turn, if a Pokémon with Ball Fetch is on the field and not holding another item, it will pick up the same type of ball as the first one thrown. This can only occur once in a battle. Created by Jay113355 on 7/4/2020. https://bulbapedia.bulbagarden.net/wiki/Ball_Fetch
  • Constructor Details

    • BallFetch

      public BallFetch()
  • Method Details

    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pokemon)
      Fires at the end of the turn.
      Parameters:
      pokemon - The Pokémon with the Ability.
    • applyEndOfBattleEffect

      public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
      Triggers at the end of the battle.
      Parameters:
      pokemon - The Pokémon in battle at the battle's end.
    • needNewInstance

      public boolean needNewInstance()
      Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.
      Returns:
      Whether a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.