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

public class Merciless extends AbstractAbility
  • Constructor Details

    • Merciless

      public Merciless()
  • Method Details

    • adjustCriticalHitChance

      public float adjustCriticalHitChance(PixelmonWrapper pokemon, PixelmonWrapper target, Attack a, float critChance)
      Description copied from interface: Ability
      Triggers at the last moment before a critical hit is rolled.
      Parameters:
      pokemon - The Pokémon with the ability
      target - The target of the attack
      a - The attack being used
      critChance - The critical hit chance, as a number between 0-1
      Returns:
      The critical hit chance, as a number between 0-1