Class SilkTrap
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.SilkTrap
Silk Trap protects the user from all effects
of physical and special moves that target it during the turn it is used.
If Silk Trap blocks an attack that would make contact with the user,
the attacker's Speed stat is lowered by one stage.
(Moves that are blocked do not activate other effects that require making contact, like Rocky Helmet or Rough Skin.)
If the user goes last in the turn, the move will fail.
-
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
applyProtectionEffect
(PixelmonWrapper target, PixelmonWrapper user, Attack a) boolean
protectVariationBlocksAttack
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) void
weightEffect
(PixelmonWrapper pw, MoveChoice userChoice, List<MoveChoice> userChoices, List<MoveChoice> bestUserChoices, List<MoveChoice> opponentChoices, List<MoveChoice> bestOpponentChoices) Determines a weight for the move that has this effect.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Protect
applyRepeatedEffect, displayMessage, stopsIncomingAttack, stopsIncomingAttackMessage
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.ProtectVariation
applyEffect, canBeRemoved, canFail, isPenetratedByMove, 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
-
SilkTrap
public SilkTrap()Initializes the status.
-
-
Method Details
-
addStatus
Description copied from class:ProtectVariation
Adds the status to the user. -
protectVariationBlocksAttack
public boolean protectVariationBlocksAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) - Overrides:
protectVariationBlocksAttack
in classProtectVariation
-
applyProtectionEffect
- Overrides:
applyProtectionEffect
in classProtectVariation
-
weightEffect
public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, List<MoveChoice> userChoices, List<MoveChoice> bestUserChoices, List<MoveChoice> opponentChoices, List<MoveChoice> bestOpponentChoices) Description copied from class:EffectBase
Determines a weight for the move that has this effect. Used for battle AI.- Overrides:
weightEffect
in classProtect
- Parameters:
pw
- The Pokémon using the move.userChoice
- The move with this effect.userChoices
- All choices the Pokémon has for the turn.bestUserChoices
- The best offensive choices the Pokémon has for the turn.opponentChoices
- All choices the opponent has for the turn.bestOpponentChoices
- The best choices the opponent has for the turn.
-