Class CraftyShield
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
com.pixelmonmod.pixelmon.battles.status.CraftyShield
Blocks status moves on the user's side of the field.
-
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 TypeMethodDescriptionvoid
applyEffect
(PixelmonWrapper user, PixelmonWrapper target) Causes various effects during the move.protected void
Displays a battle message upon successfully using the move.Gets a new instance of the status.boolean
protectVariationBlocksAttack
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) void
stopsIncomingAttackMessage
(PixelmonWrapper pokemon, PixelmonWrapper user) Displays a battle message when the status stops an attack.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.ProtectVariationTeam
addStatus, applyRepeatedEffect, canFail, isTeamStatus
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.ProtectVariation
applyProtectionEffect, canBeRemoved, isPenetratedByMove, modifyDamageIncludeFixed, 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, 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
-
CraftyShield
public CraftyShield()Initializes the status.
-
-
Method Details
-
getNewInstance
Description copied from class:ProtectVariationTeam
Gets a new instance of the status.- Specified by:
getNewInstance
in classProtectVariationTeam
- Returns:
- A new instance of the status.
-
applyEffect
Description copied from class:EffectBase
Causes various effects during the move.- Overrides:
applyEffect
in classProtectVariationTeam
- Parameters:
user
- The move's user.target
- The move's target.
-
displayMessage
Description copied from class:ProtectVariation
Displays a battle message upon successfully using the move.- Specified by:
displayMessage
in classProtectVariation
- Parameters:
user
- The user of the move.
-
protectVariationBlocksAttack
public boolean protectVariationBlocksAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) - Overrides:
protectVariationBlocksAttack
in classProtectVariation
-
stopsIncomingAttackMessage
Description copied from class:StatusBase
Displays a battle message when the status stops an attack.- Overrides:
stopsIncomingAttackMessage
in classStatusBase
- Parameters:
pokemon
- The statused Pokémon.user
- The attack's user.
-