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

public class Imposter extends AbstractAbility
Transforms the user into an opposing Pokémon when switching in.
  • Constructor Details

    • Imposter

      public Imposter()
  • Method Details

    • 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.
    • applyFoeSwitchInEffect

      public void applyFoeSwitchInEffect(PixelmonWrapper user, PixelmonWrapper target, PixelmonWrapper former)
      Use applyRepeatedEffect for the cases where all Pokémon in a battle faint, and the Pokémon with Imposter tries to transform into one of the fainted Pokémon.