public class Endure extends ProtectVariation
typemodifiers| Constructor and Description |
|---|
Endure()
Initializes the status.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addStatus(PixelmonWrapper user)
Adds the status to the user.
|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggered at the end of every turn.
|
protected void |
displayMessage(PixelmonWrapper user)
Displays a battle message upon successfully using the move.
|
int |
modifyDamageIncludeFixed(int damage,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a,
DamageTypeEnum damageType)
Triggers when the Pokémon takes direct damage, including fixed damage moves.
|
boolean |
stopsIncomingAttack(PixelmonWrapper pokemon,
PixelmonWrapper user)
Determines whether the status stops an attack about to hit the statused Pokémon.
|
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.
|
applyEffect, canFailallowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectivenessprotected boolean addStatus(PixelmonWrapper user)
ProtectVariationaddStatus in class ProtectVariationuser - The user of the move.protected void displayMessage(PixelmonWrapper user)
ProtectVariationdisplayMessage in class ProtectVariationuser - The user of the move.public boolean stopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user)
StatusBasestopsIncomingAttack in class ProtectVariationpokemon - The statused Pokémon.user - The attack's user.public int modifyDamageIncludeFixed(int damage,
PixelmonWrapper user,
PixelmonWrapper target,
Attack a,
DamageTypeEnum damageType)
StatusBasemodifyDamageIncludeFixed in class ProtectVariationdamage - The amount of damage dealt.user - The attack's user.target - The attack's target.a - The attack.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBaseapplyRepeatedEffect in class StatusBasepw - 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)
EffectBaseweightEffect in class EffectBasepw - 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.