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

    • DragonDarts

      public DragonDarts()
  • Method Details

    • applyEffectStart

      public AttackResult applyEffectStart(PixelmonWrapper user, PixelmonWrapper target)
      Description copied from class: EffectBase
      Causes effects before the move's power is calculated.
      Overrides:
      applyEffectStart in class EffectBase
      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 the target's 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.