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, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
adjustCriticalHitChance, 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, tookDamageUser
getLocalizedName, getTranslatedName
public boolean canMove
public boolean replacedEOTFaint
public boolean canAttackThisTurn(PixelmonWrapper user, Attack a)
Ability
user
- The Pokémon with the Ability.a
- The move to be used.public void applySwitchInEffect(PixelmonWrapper newPokemon)
Ability
newPokemon
- The Pokémon switching in.public void applySwitchReplaceEffect(PixelmonWrapper newPokemon, PixelmonWrapper oldPokemon)
Ability
newPokemon
- The Pokémon with the ability switching in.oldPokemon
- The Pokémon switching out.public void startMove(PixelmonWrapper pw)
Ability
pw
- The Pokémon with the Ability.public boolean needNewInstance()
Ability