public class Revenant extends AbstractAbility
| Constructor and Description |
|---|
Revenant() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsIncomingAttack(PixelmonWrapper pokemon,
PixelmonWrapper user,
Attack a)
Determines whether an incoming attack can hit the Pokémon
|
void |
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 |
alwaysConsideredDamaged(PixelmonWrapper pw)
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 |
canBeCopied()
Returns whether the ability prevents anything that can copy this ability, including transform effects etc.
|
boolean |
canBeDisabled()
Returns whether the ability can be disabled by external effects eg.
|
boolean |
canBeIgnored()
Returns whether the ability can be bypassed by moves that ignore abilities or not.
|
boolean |
canPerish()
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 |
needNewInstance()
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.
|
equals, getName, getNewInstance, getTranslationKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitadjustCriticalHitChance, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusTeammate, applyAllySwitchInEffect, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getEffectiveTypes, getMultiplier, ignoreEvasion, ignoreWeather, isAbility, isAbility, isAbility, isNegativeAbility, modifyDamageIncludeFixed, modifyDamageTeammate, modifyDamageUser, 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, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUsergetLocalizedName, getTranslatedNamepublic int onHealed(PixelmonWrapper pw, int heal)
Abilitypw - The Pokémon being healed.heal - The heal amount.public int modifyDamage(int damage,
PixelmonWrapper user,
PixelmonWrapper pokemon,
DamageTypeEnum type,
@Nullable
Attack attack,
@Nullable
Ability ability)
Abilitydamage - 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.public void onDamageReceived(PixelmonWrapper user, PixelmonWrapper pokemon, Attack a, int damage, DamageTypeEnum damagetype)
public boolean allowsStatusOpponent(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user)
Abilitystatus - 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.public boolean allowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
Abilitypokemon - The Pokémon with the Ability.user - The attack's user.a - The attack.public void allowsIncomingAttackMessage(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
Abilitypokemon - The Pokémon with the Ability.user - The attack's user.a - The attack.public void applySwitchInEffect(PixelmonWrapper newPokemon)
AbilitynewPokemon - The Pokémon switching in.public void applyEndOfBattleEffect(PixelmonWrapper pokemon)
Abilitypokemon - The Pokémon in battle at the battle's end.public void preProcessAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
Abilitypokemon - The Pokémon with the Ability.user - The attack's user.a - The attack.public int modifyDamageTarget(int damage,
PixelmonWrapper user,
PixelmonWrapper pokemon,
Attack a)
Abilitydamage - The amount of damage dealt.user - The attack's user.pokemon - The attack's target.a - The attack.public boolean canBeIgnored()
Abilitypublic boolean canBeCopied()
Abilitypublic boolean alwaysConsideredDamaged(PixelmonWrapper pw)
Abilitypw - The Pokémon being considered.public boolean canBeDisabled()
Abilitypublic boolean canPerish()
Abilitypublic boolean needNewInstance()
Ability