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

public class Prankster extends AbstractAbility
  • Constructor Details

    • Prankster

      public Prankster()
  • Method Details

    • modifyPriority

      public float modifyPriority(PixelmonWrapper pokemon, float priority, MutableBoolean triggered)
      Description copied from interface: Ability
      Modifies the Pokémon's attack's priority.
      Parameters:
      pokemon - The attack's user.
      priority - The attack's priority.
      triggered - Mutable boolean object of whether this was activated or not.
      Returns:
      The modified priority.
    • allowsOutgoingAttack

      public boolean allowsOutgoingAttack(PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Description copied from interface: Ability
      Determines whether an outgoing attack can hit the target.
      Parameters:
      user - - The user of the move and the Pokémon with the ability
      target - - The target of this Pokémon's attack.
      a - - The attack
      Returns:
      Whether the attack can hit the target or not.