Class MultipleHit
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.MultipleHit
Damages the target multiple times.
-
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 an effect during the move.boolean
Determines whether the attack will continue.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
applyEffect, cantMiss
Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Field Details
-
minHits
public int minHits -
maxHits
public int maxHits
-
-
Constructor Details
-
MultipleHit
Initializes the multi-hit move.- Parameters:
values
- The minimum and maximum number of times the multi-hit move can hit.
-
-
Method Details
-
repeatsAttack
public boolean repeatsAttack()Determines whether the attack will continue.- Returns:
- Whether the attack will continue.
-
applyEffectDuring
Description copied from class:AttackModifierBase
Causes an effect during the move.- Overrides:
applyEffectDuring
in classAttackModifierBase
- Parameters:
user
- The move's usertarget
- The move's target- Returns:
- The result of the move
-