Class DragonDarts
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.DragonDarts
Damages the target twice, avoiding and moving targets to always cause damage.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyEffectDuring
(PixelmonWrapper user, PixelmonWrapper target) Causes effects before move connects.void
applyMissEffect
(PixelmonWrapper user, PixelmonWrapper target) If Dragon Darts would not affect the target, it will target an ally Pokémon with both hits.boolean
Determines whether the attack will continue.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
applyAfterEffect, applyEffect, cantMiss, ignoresWeather, modifyPriority, overridesDefendingStat
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, canHitMultipleTargets, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, setChance, weightEffect
-
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
Description copied from class:SpecialAttackBase
Causes effects before move connects.- Overrides:
applyEffectDuring
in classSpecialAttackBase
- Parameters:
user
- The move's user.target
- The move's target.- Returns:
- The result of the effect.
-
applyMissEffect
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 classEffectBase
- Parameters:
user
- The move's user.target
- The move's target.
-