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

public class WaterBubble extends AbstractAbility
  • Constructor Details

    • WaterBubble

      public WaterBubble()
  • Method Details

    • modifyDamageTarget

      public int modifyDamageTarget(int damage, PixelmonWrapper user, PixelmonWrapper target, 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.
      target - The attack's target.
      a - The attack.
      Returns:
      The modified damage.
    • modifyPowerAndAccuracyUser

      public int[] modifyPowerAndAccuracyUser(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Description copied from interface: Ability
      Modifies the power and accuracy of the Pokémon's attack.
      Parameters:
      power - The attack's power.
      accuracy - The attack's accuracy.
      user - The attack's user.
      target - The attack's target.
      a - The attack.
      Returns:
      The modified power and accuracy.
    • allowsStatus

      public boolean allowsStatus(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper user)
      Description copied from interface: Ability
      Fires when a status attempts to apply.
      Parameters:
      status - StatusType.[whatever status] == status is the condition of the if statement.
      pokemon - The victim.
      user - The user.
      Returns:
      Whether the status can be afflicted.
    • applyRepeatedEffect

      public void applyRepeatedEffect(PixelmonWrapper pokemon)
      Description copied from interface: Ability
      Fires at the end of the turn.
      Parameters:
      pokemon - The Pokémon with the Ability.