java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.ContactDamage
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable
Direct Known Subclasses:
IronBarbs, RoughSkin

public abstract class ContactDamage extends AbstractAbility
Damages Pokémon who make contact by 1/8 hp.
  • Constructor Details

    • ContactDamage

      protected ContactDamage(String langString)
      Initializes a contact damage Ability.
      Parameters:
      langString - The lang string to display when the Ability activates.
  • Method Details

    • applyEffectOnContactTarget

      public void applyEffectOnContactTarget(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from interface: Ability
      Triggers when another Pokémon makes contact with this Pokémon.
      Parameters:
      user - The attack's user.
      target - The attack's target.