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

public class Sturdy extends AbstractAbility
Causes the Pokémon to survive an otherwise-fatal move at 1 hp remaining. Prevents OHKO moves form working.
  • Constructor Details

    • Sturdy

      public Sturdy()
  • Method Details

    • modifyDamageIncludeFixed

      public int modifyDamageIncludeFixed(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a)
      Description copied from interface: Ability
      Triggers when the Pokémon takes direct damage, including fixed damage moves.
      Parameters:
      damage - The amount of damage dealt.
      user - The attack's user.
      pokemon - The attack's target.
      a - The attack.
      Returns:
      The modified damage.
    • modifyConfusionDamage

      public int modifyConfusionDamage(int damage, PixelmonWrapper pw)
      Description copied from interface: Ability
      Triggers when the Pokémon takes would take Confusion damage.
      Parameters:
      damage - The amount of damage dealt.
      pw - The Pokémon taking damage.
      Returns:
      The modified damage.
    • 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.