Class MultiTurnSpecialAttackBase
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.attacks.specialAttacks.multiTurn.MultiTurnSpecialAttackBase
- Direct Known Subclasses:
Bide,MultiTurnCharge,PetalDance,Rollout,SkyDrop,Uproar
Base class for multi-turn moves.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.applyEffectDuring(PixelmonWrapper user, PixelmonWrapper target) Triggers before the move hits the target.voidapplyMissEffect(PixelmonWrapper user, PixelmonWrapper target) Triggers when the move misses.booleancantMiss(PixelmonWrapper user) Determines whether a move cannot miss.voidDecrements the move's turn count by 1.booleandoesPersist(PixelmonWrapper user) Returns whether the move lasts multiple turns.intgetTurnCount(PixelmonWrapper user) Gets the turn count for the user's multi-turn move.booleanignoresType(PixelmonWrapper user) Returns whether the move ignores type immunities.booleanisCharging(PixelmonWrapper user, PixelmonWrapper target) Returns whether the multi-turn move is in a charging turn.voidremoveEffect(PixelmonWrapper user, PixelmonWrapper target) Ends the multi-turn move.protected voidsetPersists(PixelmonWrapper user, boolean value) Sets whether the move will continue next turn.voidsetTurnCount(PixelmonWrapper user, int value) Sets the move's turn count.booleanReturns whether the move should not have PP deducted during the turn.Methods inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, canHitMultipleTargets, changeChance, checkChance, dealtDamage, dealtDamagePerHit, getChance, getWeightWithChance, isChance, isUser, modifyDamage, modifyPriority, modifyTargets, modifyTypeEffectiveness, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
MultiTurnSpecialAttackBase
public MultiTurnSpecialAttackBase()Initializes the multi-turn effect.
-
-
Method Details
-
getTurnCount
Gets the turn count for the user's multi-turn move.- Parameters:
user- The move's user.- Returns:
- The turn count.
-
decrementTurnCount
Decrements the move's turn count by 1.- Parameters:
user- The move's user.
-
setTurnCount
Sets the move's turn count.- Parameters:
user- The move's user.value- The new turn count.
-
doesPersist
Description copied from class:EffectBaseReturns whether the move lasts multiple turns.- Overrides:
doesPersistin classEffectBase- Parameters:
user- The move's user.- Returns:
- Whether the move lasts multiple turns.
-
setPersists
Sets whether the move will continue next turn.- Parameters:
user- The move's user.value- Whether the move will continue next turn.
-
applyEffectDuring
Triggers before the move hits the target.- Parameters:
user- The move's user.target- The move's target.- Returns:
- The result of them move.
- Throws:
Exception
-
applyEffect
Description copied from class:EffectBaseCauses various effects during the move.- Specified by:
applyEffectin classEffectBase- Parameters:
user- The move's user.target- The move's target.
-
cantMiss
Description copied from class:EffectBaseDetermines whether a move cannot miss.- Specified by:
cantMissin classEffectBase- Parameters:
user- The move's user.- Returns:
- Whether the move can't miss.
-
applyMissEffect
Description copied from class:EffectBaseTriggers when the move misses.- Overrides:
applyMissEffectin classEffectBase- Parameters:
user- The move's user.target- The move's target.
-
ignoresType
Returns whether the move ignores type immunities.- Parameters:
user- The move's user- Returns:
- Whether the move ignores type immunities
-
removeEffect
Ends the multi-turn move.- Parameters:
user- The move's usertarget- The move's target
-
isCharging
Returns whether the multi-turn move is in a charging turn.- Parameters:
user- The move's usertarget- The move's target- Returns:
- Whether the multi-turn move is in a charging turn
-
shouldNotLosePP
Returns whether the move should not have PP deducted during the turn.- Parameters:
user- The move's user.- Returns:
- True if the move should not have PP deducted during the turn
-