Class CheckedStrikes
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.SpecialAttackBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.basic.CheckedStrikes
Damages the target multiple times, with each hit having a separate accuracy check.
Failing any attempt ends the attack.
-
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.int
getCount()
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, applyMissEffect, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, doesPersist, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Field Details
-
maxHits
public int maxHits -
powerChange
public int powerChange
-
-
Constructor Details
-
CheckedStrikes
Initializes the multi-hit move.- Parameters:
values
- The maximum number of times the move can hit and how the base power changes between strikes.
-
-
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.
-
getCount
public int getCount()
-