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

public class Revenant extends AbstractAbility
Regenerates health and shuffles moves and typings when reduced to zero HP a number of times.
  • Constructor Details

    • Revenant

      public Revenant()
  • Method Details

    • onHealed

      public int onHealed(PixelmonWrapper pw, int heal)
      Description copied from interface: Ability
      Fired whenever a Pokémon is about to be healed.
      Parameters:
      pw - The Pokémon being healed.
      heal - The heal amount.
      Returns:
      The new heal amount.
    • modifyDamage

      public int modifyDamage(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, DamageTypeEnum type, @Nullable Attack attack, @Nullable Ability ability)
      Description copied from interface: Ability
      Triggers when the Pokémon takes damage, from any source.
      Parameters:
      damage - The amount of damage dealt.
      user - The attack's user.
      pokemon - The attack's target.
      type - The damage type.
      attack - The attack used by the source Pokémon, if present.
      ability - The ability of the source Pokémon.
      Returns:
      The modified damage.
    • onDamageReceived

      public void onDamageReceived(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype)
    • allowsIncomingAttack

      public boolean allowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
      Description copied from interface: Ability
      Determines whether an incoming attack can hit the Pokémon
      Parameters:
      pokemon - The Pokémon with the Ability.
      user - The attack's user.
      a - The attack.
      Returns:
      Whether the attack can hit the Pokémon.
    • allowsIncomingAttackMessage

      public void allowsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
      Description copied from interface: Ability
      Sends a battle message when the Pokémon's Ability nullifies an attack.
      Parameters:
      pokemon - The Pokémon with the Ability.
      user - The attack's user.
      a - The attack.
    • 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)
      Description copied from interface: Ability
      Triggers at the end of the battle.
      Parameters:
      pokemon - The Pokémon in battle at the battle's end.
    • preProcessAttack

      public void preProcessAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
      Description copied from interface: Ability
      Triggers before the Pokémon is attacked.
      Parameters:
      pokemon - The Pokémon with the Ability.
      user - The attack's user.
      a - The attack.
    • modifyDamageTarget

      public int modifyDamageTarget(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a)
      Description copied from interface: Ability
      Triggers when the Pokémon takes direct damage.
      Parameters:
      damage - The amount of damage dealt.
      user - The attack's user.
      pokemon - The attack's target.
      a - The attack.
      Returns:
      The modified damage.
    • 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.
    • canBeCopied

      public boolean canBeCopied()
      Description copied from interface: Ability
      Returns whether the ability prevents anything that can copy this ability, including transform effects etc.
      Returns:
      Whether the ability can be copied.
    • alwaysConsideredDamaged

      public boolean alwaysConsideredDamaged(PixelmonWrapper pw)
      Description copied from interface: Ability
      Whether the Pokémon with this ability should always be considered as hurt for moves such as Recover.
      Parameters:
      pw - The Pokémon being considered.
      Returns:
      Whether the Pokémon is always considered damaged or not.
    • canBeDisabled

      public boolean canBeDisabled()
      Description copied from interface: Ability
      Returns whether the ability can be disabled by external effects eg. Neutralizing Gas.
      Returns:
      Whether the ability can be disabled.
    • canPerish

      public boolean canPerish()
      Description copied from interface: Ability
      Returns whether the ability blocks use of Perish-type effects, eg Perish Song, Destiny Bond, Perish Body.
      Returns:
      Whether the ability blocks Perish-type effects.
    • 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.