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, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addStatus
(PixelmonWrapper user) Adds the status to the user.void
applyEffect
(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.void
Triggered at the end of every turn.protected boolean
canFail()
Checks if the move can fail when used in succession.abstract ProtectVariationTeam
Gets a new instance of the status.boolean
Determines 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, stopsIncomingAttack
Methods 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, stopsSwitching
Methods 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, modifyTypeEffectiveness, preventsRedirection, setChance, weightEffect
-
Constructor Details
-
ProtectVariationTeam
Initializes the status.- Parameters:
type
- The type of status.
-
-
Method Details
-
addStatus
Description copied from class:ProtectVariation
Adds the status to the user.- Specified by:
addStatus
in classProtectVariation
- Parameters:
user
- The user of the move.- Returns:
- Whether the status addition succeeded.
-
applyEffect
Description copied from class:EffectBase
Causes various effects during the move.- Overrides:
applyEffect
in classProtectVariation
- Parameters:
user
- The move's user.target
- The move's target.
-
isTeamStatus
public boolean isTeamStatus()Description copied from class:StatusBase
Determines whether the status applies to the Pokémon's position in the battle.- Overrides:
isTeamStatus
in classStatusBase
- Returns:
- Whether the status applies to the Pokémon's position in the battle.
-
applyRepeatedEffect
Description copied from class:StatusBase
Triggered at the end of every turn.- Overrides:
applyRepeatedEffect
in classStatusBase
- Parameters:
pw
- The statused Pokémon.
-
canFail
protected boolean canFail()Description copied from class:ProtectVariation
Checks if the move can fail when used in succession.- Overrides:
canFail
in 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.
-