public abstract class ProtectVariation extends StatusBase
typemodifiers| Constructor and Description |
|---|
ProtectVariation(StatusType type)
Initializes the Protect variation.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
addStatus(PixelmonWrapper user)
Adds the status to the user.
|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
protected boolean |
canFail()
Checks if the move can fail when used in succession.
|
protected abstract 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.
|
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, 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, modifyTypeEffectiveness, weightEffectpublic ProtectVariation(StatusType type)
type - The status's type.public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBaseapplyEffect in class StatusBaseuser - The move's user.target - The move's target.public boolean stopsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user)
StatusBasestopsIncomingAttack in class StatusBasepokemon - 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 StatusBasedamage - The amount of damage dealt.user - The attack's user.target - The attack's target.a - The attack.protected abstract boolean addStatus(PixelmonWrapper user)
user - The user of the move.protected abstract void displayMessage(PixelmonWrapper user)
user - The user of the move.protected boolean canFail()