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

public class MagnetPull extends AbstractAbility
Prevents opposing Steel-type Pokémon from switching out.
  • Constructor Details

    • MagnetPull

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

      public float getMultiplier(AbstractSpawner spawner, SpawnInfo spawnInfo, float sum, float rarity)