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

public class RockyPayload extends AbstractAbility
  • Constructor Details

    • RockyPayload

      public RockyPayload()
  • Method Details

    • modifyDamageUser

      public int modifyDamageUser(int damage, PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Triggers when the Pokémon deals 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.
    • needNewInstance

      public boolean needNewInstance()
      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.