public class GrassyTerrain extends Terrain
langEnd, langStart, turnsToGo
type
modifiers
Constructor and Description |
---|
GrassyTerrain(boolean extended)
Initializes the status.
|
GrassyTerrain(int turnsToGo) |
Modifier and Type | Method and Description |
---|---|
void |
applyRepeatedEffect(GlobalStatusController gsc)
Triggers at the end of every turn.
|
StatusBase |
copy()
If necessary, makes a deep copy of the status.
|
protected int |
countBenefits(PixelmonWrapper user,
PixelmonWrapper target)
Counts the number of ways that the target Pokémon benefits from the terrain.
|
Terrain |
getNewInstance()
Gets a new instance of the subclass.
|
Terrain |
getTerrainType() |
Element |
getTypingForTerrain() |
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.
|
affectsPokemon, applyEffect, applyRepeatedEffect, getRemainingTurns, setTurns, toString, weightEffect
ignoreWeather, isTerrain, isWeather
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public GrassyTerrain(boolean extended)
public GrassyTerrain(int turnsToGo)
public Terrain getNewInstance()
Terrain
getNewInstance
in class Terrain
@Nonnull public Terrain getTerrainType()
getTerrainType
in class Terrain
public Element getTypingForTerrain()
getTypingForTerrain
in class Terrain
public int[] modifyPowerAndAccuracyTarget(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack a)
StatusBase
modifyPowerAndAccuracyTarget
in class StatusBase
power
- The attack's power.accuracy
- The attack's accuracy.user
- The attack's user.target
- The attack's target.a
- The attack.public void applyRepeatedEffect(GlobalStatusController gsc)
GlobalStatusBase
applyRepeatedEffect
in class Terrain
gsc
- The battle's global status controller.protected int countBenefits(PixelmonWrapper user, PixelmonWrapper target)
Terrain
countBenefits
in class Terrain
user
- The Pokémon using the terrain move.target
- The Pokémon to count benefits for.public StatusBase copy()
StatusBase
copy
in class StatusBase