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)
    • allowsStatusOpponent

      public boolean allowsStatusOpponent(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user)
      Description copied from interface: Ability
      Fires for all opponents when a status attempts to be applied.
      Parameters:
      status - The status being afflicted.
      pokemon - The Pokémon with the Ability.
      target - The Pokémon who is being afflicted with the status.
      user - The Pokémon inflicting the status.
      Returns:
      Whether the status can be afflicted.
    • 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.
    • canBeCopied

      public boolean canBeCopied()
      Description copied from interface: Ability
      Returns whether the ability fully blocks 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.
    • 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.
    • canBeRoleplayed

      public boolean canBeRoleplayed()
      Description copied from interface: Ability
      Returns whether the ability can be copied via Roleplay.
      Returns:
      Whether the ability can be copied.
    • canBeReceived

      public boolean canBeReceived()
      Description copied from interface: Ability
      Returns whether the ability can be copied from an ally via Receiver.
      Returns:
      Whether the ability can be Received from an ally.
    • canBeEntrained

      public boolean canBeEntrained()
      Description copied from interface: Ability
      Returns whether the ability can be transferred via Entrainment.
      Returns:
      Whether the ability can be set on opponent.
    • canBeTraced

      public boolean canBeTraced()
      Description copied from interface: Ability
      Returns whether the ability can be copied via Trace.
      Returns:
      Whether the ability can be Traced.
    • canBeSwapped

      public boolean canBeSwapped()
      Description copied from interface: Ability
      Returns whether the ability can be part of a Skill Swap exchange.
      Returns:
      Whether the ability can be swapped.
    • 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.
    • canBeIgnored

      public boolean canBeIgnored()
      Description copied from interface: Ability
      Returns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo
      Returns:
      Whether the ability can be ignored.
    • worksWithTransformedPokemon

      public boolean worksWithTransformedPokemon()
      Description copied from interface: Ability
      Returns whether the ability is active for Transformed pokemon.
      Returns:
      Whether the ability can be used by transformed pokemon.