Class MaxGuard
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.Protect
com.pixelmonmod.pixelmon.battles.status.MaxGuard
Protects the user from most attacks for the turn.
-
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.boolean
boolean
isPenetratedByMove
(Attack attack) boolean
protectVariationBlocksAttack
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) boolean
stopsIncomingAttack
(PixelmonWrapper pokemon, PixelmonWrapper user) Determines whether the status stops an attack about to hit the statused Pokémon.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Protect
applyRepeatedEffect, displayMessage, stopsIncomingAttackMessage, weightEffect
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.ProtectVariation
applyEffect, applyProtectionEffect, canFail, modifyDamageIncludeFixed
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, 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
-
Constructor Details
-
MaxGuard
public MaxGuard()Initializes Max Guard.
-
-
Method Details
-
addStatus
Description copied from class:ProtectVariation
Adds the status to the user. -
stopsIncomingAttack
Description copied from class:StatusBase
Determines whether the status stops an attack about to hit the statused Pokémon.- Overrides:
stopsIncomingAttack
in classProtect
- Parameters:
pokemon
- The statused Pokémon.user
- The attack's user.- Returns:
- Whether the attack is stopped.
-
isPenetratedByMove
- Overrides:
isPenetratedByMove
in classProtectVariation
-
protectVariationBlocksAttack
public boolean protectVariationBlocksAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) - Overrides:
protectVariationBlocksAttack
in classProtectVariation
-
canBeRemoved
public boolean canBeRemoved()- Overrides:
canBeRemoved
in classProtectVariation
-