Class PurifyingSalt
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PreventStatus
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PurifyingSalt
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
Prevents the Pokémon from being afflicted by non-volatile status conditions and yawn.
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PreventStatus
cureText, immuneText, preventedStatuses
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applySwitchInEffect
(PixelmonWrapper pokemon) Triggers after the Pokémon switches in and when the Pokémon gains an Ability.boolean
Returns whether the ability can be bypassed by moves that ignore abilities or not.double
preProcessAttackStatBeforeDamageCalc
(PixelmonWrapper attacker, double attackStat) Triggers when another Pokémon is attacking this Pokémon, the attack will hit, and the attack is not charging.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.PreventStatus
allowsStatus, onStatusAdded
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.Ability
adjustCriticalHitChance, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getEffectiveTypes, getMultiplier, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, 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, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUser
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
PurifyingSalt
public PurifyingSalt()Initializes Purifying Salt.
-
-
Method Details
-
applySwitchInEffect
Description copied from interface:Ability
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.- Specified by:
applySwitchInEffect
in interfaceAbility
- Overrides:
applySwitchInEffect
in classPreventStatus
- Parameters:
pokemon
- The Pokémon switching in.
-
preProcessAttackStatBeforeDamageCalc
Description copied from interface:Ability
Triggers when another Pokémon is attacking this Pokémon, the attack will hit, and the attack is not charging. Triggers right before damage calculation is done.- Parameters:
attacker
- The Pokémon that is attacking.attackStat
- The attacker's attack value.
-
canBeIgnored
public boolean canBeIgnored()Description copied from interface:Ability
Returns whether the ability can be bypassed by moves that ignore abilities or not.- Returns:
- Whether the ability can be ignored.
-