Class ProtectVariationTeam
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.ProtectVariation
com.pixelmonmod.pixelmon.battles.status.ProtectVariationTeam
- Direct Known Subclasses:
CraftyShield,QuickGuard,WideGuard
A Protect variation that affects the whole team.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, typeFields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddStatus(PixelmonWrapper user) Adds the status to the user.voidapplyEffect(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.voidTriggered at the end of every turn.protected booleancanFail()Checks if the move can fail when used in succession.abstract ProtectVariationTeamGets a new instance of the status.booleanDetermines whether the status applies to the Pokémon's position in the battle.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.ProtectVariation
applyProtectionEffect, canBeRemoved, displayMessage, isPenetratedByMove, modifyDamageIncludeFixed, protectVariationBlocksAttack, stopsIncomingAttackMethods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isWholeTeamStatus, modifyBaseStats, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingMethods 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, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
ProtectVariationTeam
Initializes the status.- Parameters:
type- The type of status.
-
-
Method Details
-
addStatus
Description copied from class:ProtectVariationAdds the status to the user.- Specified by:
addStatusin classProtectVariation- Parameters:
user- The user of the move.- Returns:
- Whether the status addition succeeded.
-
applyEffect
Description copied from class:EffectBaseCauses various effects during the move.- Overrides:
applyEffectin classProtectVariation- Parameters:
user- The move's user.target- The move's target.
-
isTeamStatus
public boolean isTeamStatus()Description copied from class:StatusBaseDetermines whether the status applies to the Pokémon's position in the battle.- Overrides:
isTeamStatusin classStatusBase- Returns:
- Whether the status applies to the Pokémon's position in the battle.
-
applyRepeatedEffect
Description copied from class:StatusBaseTriggered at the end of every turn.- Overrides:
applyRepeatedEffectin classStatusBase- Parameters:
pw- The statused Pokémon.
-
canFail
protected boolean canFail()Description copied from class:ProtectVariationChecks if the move can fail when used in succession.- Overrides:
canFailin classProtectVariation- Returns:
- Whether the move can fail when used in succession.
-
getNewInstance
Gets a new instance of the status.- Returns:
- A new instance of the status.
-