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 TypeMethodDescriptionapplyEffectStart
(PixelmonWrapper user, PixelmonWrapper target) Causes effects before the move's power is calculated.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.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
applyAfterEffect, applyEffect, applyEffectDuring, cantMiss, ignoresWeather, modifyPriority, overridesDefendingStat, shouldThawUser
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
DragonDarts
public DragonDarts()
-
-
Method Details
-
applyEffectStart
Description copied from class:EffectBase
Causes effects before the move's power is calculated.- Overrides:
applyEffectStart
in classEffectBase
- 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 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 classEffectBase
- Parameters:
user
- The move's user.target
- The move's target.
-