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

public class Comatose extends AbstractAbility
Pokemon with this are treated as having the Sleep condition, while not actually having said condition. Can use all moves including Sleep Talk and Snore. Cannot gain Burn, Poison, Freeze, Paralysis (non-volatile conditions), nor Yawn. Can still be affected by non-volatile conditions if gained before gaining Comatose. Takes double damage from Hex and Wake-Up Slap. Affected by Dream Eater, Nightmare, and Bad Dreams. Cannot use Rest. Purify and Chesto Berries don't apply, as this isn't actually a status condition.
  • Constructor Details

    • Comatose

      public Comatose()
  • Method Details

    • modifyPowerAndAccuracyTarget

      public int[] modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a)
      Description copied from interface: Ability
      Modifies the power and accuracy of the attack about to hit the Pokémon.
      Parameters:
      power - The attack's power.
      accuracy - The attack's accuracy.
      user - The attack's user.
      target - The attack's target.
      a - The attack.
      Returns:
      The modified power and accuracy.
    • applySwitchInEffect

      public void applySwitchInEffect(PixelmonWrapper newPokemon)
      Description copied from interface: Ability
      Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
      Parameters:
      newPokemon - The Pokémon switching in.