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

public class Defeatist extends AbstractAbility
Halves the user's attack and Special attack when at 50% hp or less.
  • Constructor Details

    • Defeatist

      public Defeatist()
  • Method Details

    • modifyStats

      public int[] modifyStats(PixelmonWrapper user, int[] stats)
      Description copied from interface: Ability
      Modifies the Pokémon's stats at the beginning of a battle turn.
      Parameters:
      user - The Pokémon.
      stats - The Pokémon's stats.
      Returns:
      The modified stats.