public class PreventStatus extends AbstractAbility
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
cureText
The lang code for the text to display when the Ability cures the status.
|
protected java.lang.String |
immuneText
The lang code for the text to display when the Ability prevents the status.
|
protected StatusType[] |
preventedStatuses
The statuses that the Ability grants an immunity to.
|
| Constructor and Description |
|---|
PreventStatus(java.lang.String immuneText,
java.lang.String cureText,
StatusType... preventedStatuses)
Initializes the Ability.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsStatus(StatusType status,
PixelmonWrapper pokemon,
PixelmonWrapper user)
Fires when a status attempts to apply.
|
void |
applySwitchInEffect(PixelmonWrapper pokemon)
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
|
void |
onStatusAdded(StatusBase status,
PixelmonWrapper user,
PixelmonWrapper opponent)
Triggers when the Pokémon acquires a status.
|
equals, getName, getNewInstance, getTranslationKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitadjustCriticalHitChance, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canBeIgnored, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getEffectiveTypes, getMultiplier, ignoreEvasion, ignoreWeather, isAbility, isAbility, isAbility, isNegativeAbility, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyTeammate, modifyPowerAndAccuracyUser, modifyPriority, modifySelfDamage, modifyStab, modifyStats, modifyStatsCancellable, modifyStatsCancellableOther, modifyStatsCancellableTeammate, modifyStatsOther, modifyStatsTeammate, modifyType, modifyWeight, needNewInstance, onAbilityLost, onAllyFaint, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUsergetLocalizedName, getTranslatedNameprotected StatusType[] preventedStatuses
protected java.lang.String immuneText
protected java.lang.String cureText
public PreventStatus(java.lang.String immuneText,
java.lang.String cureText,
StatusType... preventedStatuses)
immuneText - The lang code for the text to display when the Ability prevents the status.cureText - The lang code for the text to display when the Ability cures the status.preventedStatuses - The statuses that the Ability grants an immunity to.public boolean allowsStatus(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper user)
Abilitystatus - StatusType.[whatever status] == status is the condition of the if statement.pokemon - The victim.user - The user.public void onStatusAdded(StatusBase status, PixelmonWrapper user, PixelmonWrapper opponent)
Abilitystatus - The status that was added.user - The statused Pokémon.opponent - The Pokémon who caused the status.public void applySwitchInEffect(PixelmonWrapper pokemon)
Abilitypokemon - The Pokémon switching in.