public class Spikes extends EntryHazard
ENTRY_HAZARDS, numLayers
type
modifiers
Constructor and Description |
---|
Spikes()
Initializes Spikes with one layer.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAffectedMessage()
Gets the lang key for the message displayed when a hazard is triggered.
|
int |
getAIWeight()
Gets the weight per Pokémon that an AI will assign to the move.
|
int |
getDamage(PixelmonWrapper pw)
Returns the amount of damage dealt by the entry hazard.
|
protected java.lang.String |
getFirstLayerMessage()
Gets the lang key for the message displayed when a hazard is first laid.
|
protected java.lang.String |
getMultiLayerMessage()
Gets the lang key for the message displayed when a hazard layer is added to an existing one.
|
EntryHazard |
getNewInstance()
Gets a new instance of the entry hazard.
|
boolean |
isUnharmed(PixelmonWrapper pw)
Checks if the Pokémon is unharmed by the entry hazard.
|
applyEffect, applyEffectOnSwitch, applyHazards, copy, doEffect, getNumLayers, isAirborne, isTeamStatus, weightEffect
allowsStatChange, applyBeforeEffect, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, 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 boolean isUnharmed(PixelmonWrapper pw)
EntryHazard
isUnharmed
in class EntryHazard
pw
- The Pokémon to check.public int getDamage(PixelmonWrapper pw)
EntryHazard
getDamage
in class EntryHazard
pw
- The Pokémon being damaged by the entry hazard.protected java.lang.String getFirstLayerMessage()
EntryHazard
getFirstLayerMessage
in class EntryHazard
protected java.lang.String getMultiLayerMessage()
EntryHazard
getMultiLayerMessage
in class EntryHazard
protected java.lang.String getAffectedMessage()
EntryHazard
getAffectedMessage
in class EntryHazard
public int getAIWeight()
EntryHazard
getAIWeight
in class EntryHazard
public EntryHazard getNewInstance()
EntryHazard
getNewInstance
in class EntryHazard