java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PreventStatDrop
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable
Direct Known Subclasses:
ClearBody, FullMetalBody, WhiteSmoke

public class PreventStatDrop extends AbstractAbility
Prevents the Pokémon's stats from being lowered.
  • Constructor Details

    • PreventStatDrop

      public PreventStatDrop(String langKey)
      Initializes the Ability.
      Parameters:
      langKey - The lang key of the message to display when the Ability activates.
  • Method Details

    • allowsStatChange

      public boolean allowsStatChange(PixelmonWrapper pokemon, PixelmonWrapper user, StatsEffect e)
      Description copied from interface: Ability
      Whether the Pokémon Ability allows a stat to be modified.
      Parameters:
      pokemon - The Pokémon with the Ability.
      user - The attack's user.
      e - The stat modifier.
      Returns:
      Whether the stat modifier can occur.