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, type
Fields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Screen
getNewInstance
(int effectTurns) Creates a new instance of the subclass.boolean
Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Screen
apply, applyEffect, applyRepeatedEffect, copy, getDamageMultiplier, ignoreStatus, isTeamStatus, modifyDamageIncludeFixed, weightEffect
Methods 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, 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
-
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:
shouldReduce
in classScreen
-
getNewInstance
Description copied from class:Screen
Creates a new instance of the subclass.- Specified by:
getNewInstance
in classScreen
- Parameters:
effectTurns
- The number of turns for the screen to last.- Returns:
- A new instance of the subclass.
-