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

public class ZeroToHero extends AbstractAbility
After switching out for the first time in battle (not due to fainting), a Palafin with the Ability switches to its Hero Form until the end of battle.
  • Constructor Details

    • ZeroToHero

      public ZeroToHero()
  • Method Details

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