public class Truant extends AbstractAbility
| Modifier and Type | Field and Description |
|---|---|
boolean |
canMove
Whether the Pokémon can make a move in the current turn.
|
boolean |
replacedEOTFaint |
| Constructor and Description |
|---|
Truant() |
| Modifier and Type | Method and Description |
|---|---|
void |
applySwitchInEffect(PixelmonWrapper newPokemon)
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
|
void |
applySwitchReplaceEffect(PixelmonWrapper newPokemon,
PixelmonWrapper oldPokemon)
Triggers after an Pokémon switches in.
|
boolean |
canAttackThisTurn(PixelmonWrapper user,
Attack a)
Checks if the Pokémon's Ability allows it to make a move.
|
boolean |
needNewInstance()
Checks if a new instance of the Ability needs to be initialized if a Pokémon receives it in battle.
|
void |
startMove(PixelmonWrapper pw)
Affects the Pokémon at the start of using a move.
|
equals, getName, getNewInstance, getTranslationKey, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitadjustCriticalHitChance, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applySwitchOutEffect, beforeSwitch, 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, onAbilityLost, onAllyFaint, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, redirectAttack, sendActivatedMessage, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUsergetLocalizedName, getTranslatedNamepublic boolean canMove
public boolean replacedEOTFaint
public boolean canAttackThisTurn(PixelmonWrapper user, Attack a)
Abilityuser - The Pokémon with the Ability.a - The move to be used.public void applySwitchInEffect(PixelmonWrapper newPokemon)
AbilitynewPokemon - The Pokémon switching in.public void applySwitchReplaceEffect(PixelmonWrapper newPokemon, PixelmonWrapper oldPokemon)
AbilitynewPokemon - The Pokémon with the ability switching in.oldPokemon - The Pokémon switching out.public void startMove(PixelmonWrapper pw)
Abilitypw - The Pokémon with the Ability.public boolean needNewInstance()
Ability