Class ElectricTerrain
java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.EffectBase
com.pixelmonmod.pixelmon.battles.status.StatusBase
com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
com.pixelmonmod.pixelmon.battles.status.Terrain
com.pixelmonmod.pixelmon.battles.status.ElectricTerrain
Increases the power of Electric-type moves and prevents sleep.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.battles.status.Terrain
langEnd, langStart, turnsToGoFields inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
battleTurnGained, turnGained, typeFields inherited from class com.pixelmonmod.pixelmon.battles.attacks.EffectBase
modifiers -
Constructor Summary
ConstructorsConstructorDescriptionElectricTerrain(boolean extended) Initializes the status.ElectricTerrain(int turnsToGo) -
Method Summary
Modifier and TypeMethodDescriptioncopy()If necessary, makes a deep copy of the status.protected intcountBenefits(PixelmonWrapper user, PixelmonWrapper target) Counts the number of ways that the target Pokémon benefits from the terrain.Gets a new instance of the subclass.int[]modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a) Modifies the power and accuracy of the attack about to hit the statused Pokémon.booleanstopsStatusChange(StatusType t, PixelmonWrapper target, PixelmonWrapper user) Determines whether the status prevents the Pokémon from obtaining other statuses.Methods inherited from class com.pixelmonmod.pixelmon.battles.status.Terrain
affectsPokemon, applyEffect, applyRepeatedEffect, applyRepeatedEffect, getRemainingTurns, setTurns, toString, weightEffectMethods inherited from class com.pixelmonmod.pixelmon.battles.status.GlobalStatusBase
applyEffectAfterStatus, ignoreWeather, isTerrain, isWeatherMethods inherited from class com.pixelmonmod.pixelmon.battles.status.StatusBase
adjustCritStage, allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onDynamaxTriggered, onEndOfAttackersTurn, onEndOfTurn, onFormChanged, redirectAttack, skipsTurn, stopsEvolution, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, 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
-
ElectricTerrain
public ElectricTerrain(boolean extended) Initializes the status. -
ElectricTerrain
public ElectricTerrain(int turnsToGo)
-
-
Method Details
-
getNewInstance
Description copied from class:TerrainGets a new instance of the subclass.- Specified by:
getNewInstancein classTerrain- Returns:
- A new instance of the subclass.
-
getTerrainType
- Specified by:
getTerrainTypein classTerrain
-
getTypingForTerrain
- Specified by:
getTypingForTerrainin classTerrain
-
modifyPowerAndAccuracyTarget
public int[] modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a) Description copied from class:StatusBaseModifies the power and accuracy of the attack about to hit the statused Pokémon.- Overrides:
modifyPowerAndAccuracyTargetin classStatusBase- Parameters:
power- The attack's power.accuracy- The attack's accuracy.user- The attack's user.target- The attack's target.a- The attack.- Returns:
- The modified power and accuracy.
-
stopsStatusChange
Description copied from class:StatusBaseDetermines whether the status prevents the Pokémon from obtaining other statuses.- Overrides:
stopsStatusChangein classStatusBase- Parameters:
t- The status to be afflictedtarget- The Pokémon to be afflicted.user- The Pokémon afflicting the status.- Returns:
- Whether the status stops the other status from being afflicted.
-
countBenefits
Description copied from class:TerrainCounts the number of ways that the target Pokémon benefits from the terrain.- Specified by:
countBenefitsin classTerrain- Parameters:
user- The Pokémon using the terrain move.target- The Pokémon to count benefits for.- Returns:
- The number of ways that the target Pokémon benefits from the terrain.
-
copy
Description copied from class:StatusBaseIf necessary, makes a deep copy of the status.- Overrides:
copyin classStatusBase- Returns:
- A deep copy of the status.
-