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

public class ArenaTrap extends AbstractAbility
Prevents grounded Pokémon from switching.
  • Constructor Details

    • ArenaTrap

      public ArenaTrap()
  • Method Details

    • stopsSwitching

      public boolean stopsSwitching(PixelmonWrapper user, PixelmonWrapper opponent)
      Description copied from interface: Ability
      Determines whether the Pokemon's Ability traps another Pokémon.
      Parameters:
      user - The Pokémon with the Ability.
      opponent - The Pokémon affected by the Ability.
      Returns:
      Whether the opponent is trapped.