Class Sturdy
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.Sturdy
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
Causes the Pokémon to survive an otherwise-fatal move at 1 hp remaining. Prevents OHKO moves form working.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allowsIncomingAttack
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Determines whether an incoming attack can hit the Pokémonvoid
allowsIncomingAttackMessage
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Sends a battle message when the Pokémon's Ability nullifies an attack.boolean
Returns whether the ability can be bypassed by moves that ignore abilities or not.int
modifyConfusionDamage
(int damage, PixelmonWrapper pw) Triggers when the Pokémon takes would take Confusion damage.int
modifyDamageIncludeFixed
(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a) Triggers when the Pokémon takes direct damage, including fixed damage moves.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, adjustCritStage, allowsAttack, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchInEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canBeEntrained, canBeReceived, canBeRoleplayed, canBeSwapped, canBeTraced, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyDamage, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, 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, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUser, worksWithTransformedPokemon
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
Sturdy
public Sturdy()
-
-
Method Details
-
modifyDamageIncludeFixed
public int modifyDamageIncludeFixed(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a) Description copied from interface:Ability
Triggers when the Pokémon takes direct damage, including fixed damage moves.- Parameters:
damage
- The amount of damage dealt.user
- The attack's user.pokemon
- The attack's target.a
- The attack.- Returns:
- The modified damage.
-
modifyConfusionDamage
Description copied from interface:Ability
Triggers when the Pokémon takes would take Confusion damage.- Parameters:
damage
- The amount of damage dealt.pw
- The Pokémon taking damage.- Returns:
- The modified damage.
-
allowsIncomingAttack
Description copied from interface:Ability
Determines whether an incoming attack can hit the Pokémon- Parameters:
pokemon
- The Pokémon with the Ability.user
- The attack's user.a
- The attack.- Returns:
- Whether the attack can hit the Pokémon.
-
allowsIncomingAttackMessage
Description copied from interface:Ability
Sends a battle message when the Pokémon's Ability nullifies an attack.- Parameters:
pokemon
- The Pokémon with the Ability.user
- The attack's user.a
- The attack.
-
canBeIgnored
public boolean canBeIgnored()Description copied from interface:Ability
Returns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo- Returns:
- Whether the ability can be ignored.
-