public class Flinch extends StatusBase
Modifier and Type | Field and Description |
---|---|
static boolean |
targetHadSubstitute |
type
modifiers
Constructor and Description |
---|
Flinch()
Initializes the status.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
AttackResult |
applyEffectStart(PixelmonWrapper user,
PixelmonWrapper target)
Checks if the target had a substitute before this attack hit.
|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggered at the end of every turn.
|
boolean |
canAttackThisTurn(PixelmonWrapper user,
Attack a)
Determines whether the statused Pokémon can attack.
|
static void |
flinch(PixelmonWrapper user,
PixelmonWrapper target)
Flinches the target if possible.
|
void |
onEndOfTurn(PixelmonWrapper user)
Occurs at the end of the Pokémon's current turn.
|
void |
weightEffect(PixelmonWrapper pw,
MoveChoice userChoice,
java.util.List<MoveChoice> userChoices,
java.util.List<MoveChoice> bestUserChoices,
java.util.List<MoveChoice> opponentChoices,
java.util.List<MoveChoice> bestOpponentChoices)
Determines a weight for the move that has this effect.
|
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, cantMiss, copy, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyEffect
in class StatusBase
user
- The move's user.target
- The move's target.public static void flinch(PixelmonWrapper user, PixelmonWrapper target)
user
- The Pokémon causing the flinch.target
- The Pokémon to flinch.public AttackResult applyEffectStart(PixelmonWrapper user, PixelmonWrapper target)
applyEffectStart
in class EffectBase
user
- The Pokémon causing the flinch.target
- The Pokémon to flinch.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBase
applyRepeatedEffect
in class StatusBase
pw
- The statused Pokémon.public boolean canAttackThisTurn(PixelmonWrapper user, Attack a)
StatusBase
canAttackThisTurn
in class StatusBase
user
- The statused Pokémon.a
- The attack to be used by the Pokémon.public void onEndOfTurn(PixelmonWrapper user)
StatusBase
onEndOfTurn
in class StatusBase
user
- The statused Pokémon.public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBase
weightEffect
in class EffectBase
pw
- The Pokémon using the move.userChoice
- The move with this effect.userChoices
- All choices the Pokémon has for the turn.bestUserChoices
- The best offensive choices the Pokémon has for the turn.opponentChoices
- All choices the opponent has for the turn.bestOpponentChoices
- The best choices the opponent has for the turn.