public class PreventStatusTeam extends AbstractAbility
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cureText
The lang code for the text to display when the Ability cures the status.
|
protected java.lang.String |
immuneText
The lang code for the text to display when the Ability prevents the status.
|
protected StatusType[] |
preventedStatuses
The statuses that the Ability grants an immunity to.
|
Constructor and Description |
---|
PreventStatusTeam(java.lang.String immuneText,
java.lang.String cureText,
StatusType... preventedStatuses)
Initializes the Ability.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsStatus(StatusType status,
PixelmonWrapper pokemon,
PixelmonWrapper user)
Fires when a status attempts to apply.
|
boolean |
allowsStatusTeammate(StatusType status,
PixelmonWrapper pokemon,
PixelmonWrapper target,
PixelmonWrapper user)
Fires for all teammates when a status attempts to be applied.
|
void |
applySwitchInEffect(PixelmonWrapper pokemon)
Triggers after the Pokémon switches in and when the Pokémon gains an Ability.
|
void |
onStatusAdded(StatusBase status,
PixelmonWrapper user,
PixelmonWrapper opponent)
Triggers when the Pokémon acquires a status.
|
equals, getName, getNewInstance, getTranslationKey, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
adjustCriticalHitChance, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatusOpponent, alwaysConsideredDamaged, applyAllySwitchInEffect, 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, onAllyFaint, onBerryEaten, onDamageReceived, onFoeFaint, onHealed, onItemChanged, onItemConsumed, onSelfFaint, onStatDecrease, onStatIncrease, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageUser
getLocalizedName, getTranslatedName
protected StatusType[] preventedStatuses
protected java.lang.String immuneText
protected java.lang.String cureText
public PreventStatusTeam(java.lang.String immuneText, java.lang.String cureText, StatusType... preventedStatuses)
immuneText
- The lang code for the text to display when the Ability prevents the status.cureText
- The lang code for the text to display when the Ability cures the status.preventedStatuses
- The statuses that the Ability grants an immunity to.public boolean allowsStatus(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper user)
Ability
status
- StatusType.[whatever status] == status is the condition of the if statement.pokemon
- The victim.user
- The user.public boolean allowsStatusTeammate(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user)
Ability
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.public void onStatusAdded(StatusBase status, PixelmonWrapper user, PixelmonWrapper opponent)
Ability
status
- The status that was added.user
- The statused Pokémon.opponent
- The Pokémon who caused the status.public void applySwitchInEffect(PixelmonWrapper pokemon)
Ability
pokemon
- The Pokémon switching in.