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

public class Illusion extends AbstractAbility
Disguises the Pokémon as the last Pokémon in the Trainer's party. The disguise fades if the Pokémon takes direct damage.
  • Field Details

    • disguisedPokemon

      public Species disguisedPokemon
      The species of Pokémon to be disguised as.
    • disguisedNickname

      public String disguisedNickname
      The name of the Pokémon to be disguised as.
    • disguisedGender

      public Gender disguisedGender
      The gender of the Pokémon to be disguised as.
    • disguisedForm

      public String disguisedForm
      The form of the disguised Pokémon.
    • disguisedPalette

      public String disguisedPalette
      The texture of the Pokémon to be disguised as.
  • Constructor Details

    • Illusion

      public Illusion()
  • Method Details

    • beforeSwitch

      public void beforeSwitch(PixelmonWrapper newPokemon)
      Description copied from interface: Ability
      Triggers just before the Pokémon switches in.
      Parameters:
      newPokemon - The Pokémon switching in.
    • 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.
    • tookDamageTarget

      public void tookDamageTarget(int damage, PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Description copied from interface: Ability
      Triggers after the Pokémon takes damage.
      Parameters:
      damage - The amount of damage dealt.
      user - The attack's user.
      target - The attack's target.
      a - The attack.
    • onAbilityLost

      public void onAbilityLost(PixelmonWrapper pokemon)
      Description copied from interface: Ability
      Triggers just before the Pokémon loses an Ability in battle.
      Parameters:
      pokemon - The Pokémon with the Ability.
    • applySwitchOutEffect

      public void applySwitchOutEffect(PixelmonWrapper oldPokemon)
      Description copied from interface: Ability
      Triggers when the Pokémon switches out.
      Parameters:
      oldPokemon - The Pokémon switching out.
    • applyEndOfBattleEffect

      public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
      Description copied from interface: Ability
      Triggers at the end of the battle.
      Parameters:
      pokemon - The Pokémon in battle at the battle's end.
    • 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.
    • canBeIgnored

      public boolean canBeIgnored()
      Description copied from interface: Ability
      Returns whether the ability can be bypassed by moves that ignore abilities or not.
      Returns:
      Whether the ability can be ignored.