public class ToxicSpikes extends EntryHazard
ENTRY_HAZARDS, numLayerstypemodifiers| Constructor and Description |
|---|
ToxicSpikes()
Initializes Toxic Spikes with one layer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyEffectOnSwitch(PixelmonWrapper pw)
Triggers when the statused Pokémon switches in.
|
protected void |
doEffect(PixelmonWrapper pw)
Affects a Pokémon when it switches in.
|
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.
|
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, applyHazards, copy, getDamage, getNumLayers, isAirborne, isTeamStatus, weightEffectallowsStatChange, 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, stopsSwitchingapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectivenesspublic boolean isUnharmed(PixelmonWrapper pw)
EntryHazardisUnharmed in class EntryHazardpw - The Pokémon to check.public void applyEffectOnSwitch(PixelmonWrapper pw)
StatusBaseapplyEffectOnSwitch in class EntryHazardpw - The statused Pokémon.protected void doEffect(PixelmonWrapper pw)
EntryHazarddoEffect in class EntryHazardpw - The Pokémon to affect.public EntryHazard getNewInstance()
EntryHazardgetNewInstance in class EntryHazardprotected java.lang.String getFirstLayerMessage()
EntryHazardgetFirstLayerMessage in class EntryHazardprotected java.lang.String getMultiLayerMessage()
EntryHazardgetMultiLayerMessage in class EntryHazardprotected java.lang.String getAffectedMessage()
EntryHazardgetAffectedMessage in class EntryHazardpublic int getAIWeight()
EntryHazardgetAIWeight in class EntryHazard