java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.LowHPTypeBoost
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable
Direct Known Subclasses:
Blaze, Overgrow, Swarm, Torrent

public class LowHPTypeBoost extends AbstractAbility
Boosts the power of a certain type of move by 50% when below 1/3rd hp.
  • Constructor Details

    • LowHPTypeBoost

      protected LowHPTypeBoost(Element type)
      Initializes a low hp type boost Ability.
      Parameters:
      type - The move type that is boosted by the Ability.
  • Method Details

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