Class Revenant
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.custom.Revenant
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
Regenerates health and shuffles moves and typings when reduced to zero HP a number of times.
-
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
allowsStatusOpponent
(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user) Fires for all opponents when a status attempts to be applied.boolean
Whether the Pokémon with this ability should always be considered as hurt for moves such as Recover.void
applyEndOfBattleEffect
(PixelmonWrapper pokemon) Triggers at the end of the battle.void
applySwitchInEffect
(PixelmonWrapper newPokemon) Triggers after the Pokémon switches in and when the Pokémon gains an Ability.boolean
Returns whether the ability fully blocks anything that can copy this ability, including transform effects etc.boolean
Returns whether the ability can be disabled by external effects eg.boolean
Returns whether the ability can be transferred via Entrainment.boolean
Returns whether the ability can be bypassed by moves that ignore abilities or not.boolean
Returns whether the ability can be copied from an ally via Receiver.boolean
Returns whether the ability can be copied via Roleplay.boolean
Returns whether the ability can be part of a Skill Swap exchange.boolean
Returns whether the ability can be copied via Trace.boolean
Returns whether the ability blocks use of Perish-type effects, eg Perish Song, Destiny Bond, Perish Body.int
modifyDamage
(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, DamageTypeEnum type, Attack attack, Ability ability) Triggers when the Pokémon takes damage, from any source.int
modifyDamageTarget
(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, Attack a) Triggers when the Pokémon takes direct damage.boolean
Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.void
onDamageReceived
(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype) int
onHealed
(PixelmonWrapper pw, int heal) Fired whenever a Pokémon is about to be healed.void
preProcessAttack
(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) Triggers before the Pokémon is attacked.boolean
Returns whether the ability is active for Transformed pokemon.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, allowsStatusTeammate, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamageIncludeFixed, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyTeammate, modifyPowerAndAccuracyUser, modifyPriority, modifySelfDamage, modifyStab, modifyStats, modifyStatsCancellable, modifyStatsCancellableOther, modifyStatsCancellableTeammate, modifyStatsOther, modifyStatsTeammate, modifyType, modifyWeight, onAbilityLost, onAllyFaint, onBerryEaten, onFoeFaint, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttackStatBeforeDamageCalc, 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
-
Revenant
public Revenant()
-
-
Method Details
-
onHealed
Description copied from interface:Ability
Fired whenever a Pokémon is about to be healed.- Parameters:
pw
- The Pokémon being healed.heal
- The heal amount.- Returns:
- The new heal amount.
-
modifyDamage
public int modifyDamage(int damage, PixelmonWrapper user, PixelmonWrapper pokemon, DamageTypeEnum type, @Nullable Attack attack, @Nullable Ability ability) Description copied from interface:Ability
Triggers when the Pokémon takes damage, from any source.- Parameters:
damage
- The amount of damage dealt.user
- The attack's user.pokemon
- The attack's target.type
- The damage type.attack
- The attack used by the source Pokémon, if present.ability
- The ability of the source Pokémon.- Returns:
- The modified damage.
-
onDamageReceived
public void onDamageReceived(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype) -
allowsStatusOpponent
public boolean allowsStatusOpponent(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user) Description copied from interface:Ability
Fires for all opponents when a status attempts to be applied.- Parameters:
status
- The status being afflicted.pokemon
- The Pokémon with the Ability.target
- The Pokémon who is being afflicted with the status.user
- The Pokémon inflicting the status.- Returns:
- Whether the status can be afflicted.
-
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.
-
applySwitchInEffect
Description copied from interface:Ability
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.- Parameters:
newPokemon
- The Pokémon switching in.
-
applyEndOfBattleEffect
Description copied from interface:Ability
Triggers at the end of the battle.- Parameters:
pokemon
- The Pokémon in battle at the battle's end.
-
preProcessAttack
Description copied from interface:Ability
Triggers before the Pokémon is attacked.- Parameters:
pokemon
- The Pokémon with the Ability.user
- The attack's user.a
- The attack.
-
modifyDamageTarget
Description copied from interface:Ability
Triggers when the Pokémon takes direct damage.- Parameters:
damage
- The amount of damage dealt.user
- The attack's user.pokemon
- The attack's target.a
- The attack.- Returns:
- The modified damage.
-
canBeCopied
public boolean canBeCopied()Description copied from interface:Ability
Returns whether the ability fully blocks anything that can copy this ability, including transform effects etc.- Returns:
- Whether the ability can be copied.
-
alwaysConsideredDamaged
Description copied from interface:Ability
Whether the Pokémon with this ability should always be considered as hurt for moves such as Recover.- Parameters:
pw
- The Pokémon being considered.- Returns:
- Whether the Pokémon is always considered damaged or not.
-
canPerish
public boolean canPerish()Description copied from interface:Ability
Returns whether the ability blocks use of Perish-type effects, eg Perish Song, Destiny Bond, Perish Body.- Returns:
- Whether the ability blocks Perish-type effects.
-
needNewInstance
public boolean needNewInstance()Description copied from interface:Ability
Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.- Returns:
- Whether a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.
-
canBeRoleplayed
public boolean canBeRoleplayed()Description copied from interface:Ability
Returns whether the ability can be copied via Roleplay.- Returns:
- Whether the ability can be copied.
-
canBeReceived
public boolean canBeReceived()Description copied from interface:Ability
Returns whether the ability can be copied from an ally via Receiver.- Returns:
- Whether the ability can be Received from an ally.
-
canBeEntrained
public boolean canBeEntrained()Description copied from interface:Ability
Returns whether the ability can be transferred via Entrainment.- Returns:
- Whether the ability can be set on opponent.
-
canBeTraced
public boolean canBeTraced()Description copied from interface:Ability
Returns whether the ability can be copied via Trace.- Returns:
- Whether the ability can be Traced.
-
canBeSwapped
public boolean canBeSwapped()Description copied from interface:Ability
Returns whether the ability can be part of a Skill Swap exchange.- Returns:
- Whether the ability can be swapped.
-
canBeDisabled
public boolean canBeDisabled()Description copied from interface:Ability
Returns whether the ability can be disabled by external effects eg. Neutralizing Gas.- Returns:
- Whether the ability can be disabled.
-
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.
-
worksWithTransformedPokemon
public boolean worksWithTransformedPokemon()Description copied from interface:Ability
Returns whether the ability is active for Transformed pokemon.- Returns:
- Whether the ability can be used by transformed pokemon.
-