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.
    • canBeRoleplayed

      public boolean canBeRoleplayed()
      Description copied from interface: Ability
      Returns whether the ability can be copied via Roleplay.
      Returns:
      Whether the ability can be copied.
    • canBeReceived

      public boolean canBeReceived()
      Description copied from interface: Ability
      Returns whether the ability can be copied from an ally via Receiver.
      Returns:
      Whether the ability can be Received from an ally.
    • canBeEntrained

      public boolean canBeEntrained()
      Description copied from interface: Ability
      Returns whether the ability can be transferred via Entrainment.
      Returns:
      Whether the ability can be set on opponent.
    • canBeTraced

      public boolean canBeTraced()
      Description copied from interface: Ability
      Returns whether the ability can be copied via Trace.
      Returns:
      Whether the ability can be Traced.
    • canBeSwapped

      public boolean canBeSwapped()
      Description copied from interface: Ability
      Returns whether the ability can be part of a Skill Swap exchange.
      Returns:
      Whether the ability can be swapped.
    • canBeDisabled

      public boolean canBeDisabled()
      Description copied from interface: Ability
      Returns whether the ability can be disabled by external effects eg. Neutralizing Gas.
      Returns:
      Whether the ability can be disabled.