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

public class Adaptability extends AbstractAbility
Adaptability is an ability that increases the same-type attack bonus (STAB) multiplier from ×1.5 to ×2.0.

When a Pokémon Terastallizes, if the Pokémon's Tera Type is the same as one of its original types, moves of that type, by default, receive a ×2 damage boost instead of the usual ×1.5. When a Pokémon with Adaptability is Terastallized, Adaptability only affects moves of the Tera Type. So if the Pokémon's Tera Type is one of its original types, Adaptability changes its STAB multiplier from ×2 to ×2.25. If the Pokémon's Tera Type is not one of its original types, the STAB multiplier only increases to ×2.

  • Constructor Details

    • Adaptability

      public Adaptability()
  • Method Details

    • modifyStab

      public double modifyStab(PixelmonWrapper user, double stab)
      Description copied from interface: Ability
      Modifies the STAB multiplier.
      Parameters:
      user - The attacker.
      stab - The STAB multiplier.
      Returns:
      The modified STAB multiplier.