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

public class Truant extends AbstractAbility
Prevents the Pokémon from moving every other turn.
  • Field Details

    • canMove

      public boolean canMove
      Whether the Pokémon can make a move in the current turn.
    • replacedEOTFaint

      public boolean replacedEOTFaint
  • Constructor Details

    • Truant

      public Truant()
  • Method Details

    • canAttackThisTurn

      public boolean canAttackThisTurn(PixelmonWrapper user, Attack a)
      Description copied from interface: Ability
      Checks if the Pokémon's Ability allows it to make a move.
      Parameters:
      user - The Pokémon with the Ability.
      a - The move to be used.
      Returns:
      Whether the Pokémon's Ability allows it to make a move.
    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Description copied from interface: Ability
      Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
      Parameters:
      newPokemon - The Pokémon switching in.
    • applySwitchReplaceEffect

      public void applySwitchReplaceEffect(PixelmonWrapper newPokemon, PixelmonWrapper oldPokemon)
      Description copied from interface: Ability
      Triggers after an Pokémon switches in.
      Parameters:
      newPokemon - The Pokémon with the ability switching in.
      oldPokemon - The Pokémon switching out.
    • startMove

      public void startMove(PixelmonWrapper pw)
      Description copied from interface: Ability
      Affects the Pokémon at the start of using a move.
      Parameters:
      pw - The Pokémon with the Ability.
    • needNewInstance

      public boolean needNewInstance()
      Description copied from interface: Ability
      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.