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

public class Rivalry extends AbstractAbility
Increases the power of moves that hit Pokémon of the same gender, and decreases the power of moves that hit Pokémon of the opposite gender.
  • Constructor Details

    • Rivalry

      public Rivalry()
  • 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.