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

public class ColorChange extends AbstractAbility
Changes the user's type to the type of the move that dealt damage to it.
  • Constructor Details

    • ColorChange

      public ColorChange()
  • Method Details

    • tookDamageTargetAfterMove

      public void tookDamageTargetAfterMove(PixelmonWrapper user, PixelmonWrapper target, Attack a, float damage)
      Description copied from interface: Ability
      Triggers at the end of an attack (after all hits of a multi-hit move) if the user takes damage.
      Parameters:
      user - The attack's user.
      target - The attack's target.
      a - The attack.