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

public class MagicBounce extends AbstractAbility
Reflects most status moves back at the moves' users.
  • Constructor Details

    • MagicBounce

      public MagicBounce()
  • Method Details

    • allowsIncomingAttack

      public boolean allowsIncomingAttack(PixelmonWrapper abilityUser, PixelmonWrapper attackUser, Attack a)
      Description copied from interface: Ability
      Determines whether an incoming attack can hit the Pokémon
      Parameters:
      abilityUser - The Pokémon with the Ability.
      attackUser - The attack's user.
      a - The attack.
      Returns:
      Whether the attack can hit the Pokémon.
    • allowsIncomingAttackNoReflect

      public boolean allowsIncomingAttackNoReflect(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
    • allowsIncomingAttackTeammate

      public boolean allowsIncomingAttackTeammate(PixelmonWrapper abilityUser, PixelmonWrapper target, PixelmonWrapper attackUser, Attack a)
      Description copied from interface: Ability
      Determines whether an incoming attack can hit a teammate Pokémon
      Parameters:
      abilityUser - The Pokémon with the Ability.
      target - The teammate being targeted.
      attackUser - The attack's user.
      a - The attack.
      Returns:
      Whether the attack can hit the Pokémon.
    • canBeIgnored

      public boolean canBeIgnored()
      Description copied from interface: Ability
      Returns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo
      Returns:
      Whether the ability can be ignored.