Class Reflect
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.Screen
com.pixelmonmod.pixelmon.battles.status.Reflect
Raises the team's Defense.
-
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 ScreengetNewInstance(int effectTurns) Creates a new instance of the subclass.booleanMethods inherited from class com.pixelmonmod.pixelmon.battles.status.Screen
apply, applyEffect, applyRepeatedEffect, copy, getDamageMultiplier, ignoreStatus, isTeamStatus, modifyDamageIncludeFixed, weightEffectMethods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getNewInstance, isImmune, isWholeTeamStatus, modifyBaseStats, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, 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, modifyTypeEffectiveness, preventsRedirection, setChance
-
Constructor Details
-
Reflect
public Reflect()Initializes Reflect Screen with the default five turn duration. -
Reflect
public Reflect(int turns) Initializes Reflect with a custom duration.- Parameters:
turns- Number of turns for Reflect to last.
-
-
Method Details
-
shouldReduce
- Overrides:
shouldReducein classScreen
-
getNewInstance
Description copied from class:ScreenCreates a new instance of the subclass.- Specified by:
getNewInstancein classScreen- Parameters:
effectTurns- The number of turns for the screen to last.- Returns:
- A new instance of the subclass.
-