Class AttackModifierBase
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.attackModifiers.AttackModifierBase
- Direct Known Subclasses:
AlwaysHit
,CriticalHit
,Damage
,GrassyGlide
,MultipleHit
,OnlyUser
,PreventRedirect
,Priority
,Psyblade
,Recoil
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyEffect
(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.applyEffectDuring
(PixelmonWrapper user, PixelmonWrapper target) Causes an effect during the move.boolean
cantMiss
(PixelmonWrapper user) Determines whether a move cannot miss.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
-
Constructor Details
-
AttackModifierBase
public AttackModifierBase()
-
-
Method Details
-
applyEffectDuring
Causes an effect during the move.- Parameters:
user
- The move's usertarget
- The move's target- Returns:
- The result of the move
- Throws:
Exception
-
applyEffect
Description copied from class:EffectBase
Causes various effects during the move.- Specified by:
applyEffect
in classEffectBase
- Parameters:
user
- The move's user.target
- The move's target.
-
cantMiss
Description copied from class:EffectBase
Determines whether a move cannot miss.- Specified by:
cantMiss
in classEffectBase
- Parameters:
user
- The move's user.- Returns:
- Whether the move can't miss.
-