public class DragonDarts extends SpecialAttackBase
Damages the target twice, avoiding and moving targets to always cause damage.
  • Field Details

    • minHits

      public int minHits
    • maxHits

      public int maxHits
  • Constructor Details

    • DragonDarts

      public DragonDarts()
  • Method Details

    • repeatsAttack

      public boolean repeatsAttack()
      Determines whether the attack will continue.
      Returns:
      Whether the attack will continue.
    • applyEffectDuring

      public AttackResult applyEffectDuring(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: SpecialAttackBase
      Causes effects before move connects.
      Overrides:
      applyEffectDuring in class SpecialAttackBase
      Parameters:
      user - The move's user.
      target - The move's target.
      Returns:
      The result of the effect.
    • applyMissEffect

      public void applyMissEffect(PixelmonWrapper user, PixelmonWrapper target)
      If Dragon Darts would not affect the target, it will target an ally Pokémon with both hits. Type immunity, ability-based immunity, being protected by a protection move, being in the semi-invulnerable turn of a move, or if Dragon Darts would miss due to the user's accuracy or the target's evasion will all cause Dragon Darts to switch to target one of the allies. If the second hit would miss or not affect the second ally Pokémon, then both hits will target the original target.
      Overrides:
      applyMissEffect in class EffectBase
      Parameters:
      user - The move's user.
      target - The move's target.