public class Commander extends AbstractAbility
Constructor and Description |
---|
Commander() |
Modifier and Type | Method and Description |
---|---|
void |
applyAllySwitchInEffect(PixelmonWrapper pw,
PixelmonWrapper switched)
Triggers after an allied Pokémon switches in.
|
void |
applySwitchInEffect(PixelmonWrapper pw)
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
|
void |
onAllyFaint(PixelmonWrapper pw,
PixelmonWrapper fainted,
PixelmonWrapper source)
Triggers right after an allied Pokémon faints.
|
void |
onSelfFaint(PixelmonWrapper self,
PixelmonWrapper source)
Triggers right after an allied Pokémon faints.
|
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, applyDynamaxEffect, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, 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, needNewInstance, onAbilityLost, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onStatDecrease, onStatIncrease, onStatusAdded, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUser
getLocalizedName, getTranslatedName
public void applySwitchInEffect(PixelmonWrapper pw)
Ability
pw
- The Pokémon switching in.public void applyAllySwitchInEffect(PixelmonWrapper pw, PixelmonWrapper switched)
Ability
pw
- The Pokémon with the ability.switched
- The allied Pokémon switching in.public void onAllyFaint(PixelmonWrapper pw, PixelmonWrapper fainted, PixelmonWrapper source)
Ability
pw
- - The Pokémon with the ability. Not the one fainting.fainted
- - The ally Pokémon that fainted.source
- - The ultimate cause of the fainting. Self inflicted or global causes give the fainted as the source.public void onSelfFaint(PixelmonWrapper self, PixelmonWrapper source)
Ability
self
- - The Pokémon with the ability.source
- - The ultimate cause of the fainting. Self inflicted or global causes give the fainted as the source.