Class MagicBounce
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.MagicBounce
- All Implemented Interfaces:
Ability,RarityTweak,ITranslatable
Reflects most status moves back at the moves' users.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsIncomingAttack(PixelmonWrapper abilityUser, PixelmonWrapper attackUser, Attack a) Determines whether an incoming attack can hit the PokémonbooleanallowsIncomingAttackNoReflect(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) booleanallowsIncomingAttackTeammate(PixelmonWrapper abilityUser, PixelmonWrapper target, PixelmonWrapper attackUser, Attack a) Determines whether an incoming attack can hit a teammate PokémonbooleanReturns whether the ability can be bypassed by moves that ignore abilities or not.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.Ability
adjustCriticalHitChance, adjustCritStage, allowsAttack, allowsIncomingAttackMessage, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyDynamaxEffect, applyEffectBeforeContactLate, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchInEffect, applySwitchOutEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeDisabled, canBeEntrained, canBeReceived, canBeRoleplayed, canBeSwapped, canBeTraced, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, ignoresAdditionalEffectsAgainstTarget, ignoresAdditionalEffectsFromAttacker, ignoresContactEffectsFromTarget, ignoresStatusTypeImmunity, ignoreWeather, isAbility, isAbility, isAbility, isAbility, isAbility, isNegativeAbility, modifyConfusionDamage, modifyDamage, modifyDamageIncludeFixed, modifyDamageTarget, modifyDamageTeammate, modifyDamageUser, modifyEffectiveTypes, modifyMoveEffectChanceTarget, modifyMoveEffectChanceUser, modifyMoveEffects, 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, onStatusAdded, onStatusInflicted, onTargetKnockedOut, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, postProcessAttackUserHitOrMiss, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, redirectStatChange, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTarget, tookDamageTargetAfterMove, tookDamageTargetAfterMoveLate, tookDamageUser, worksWithTransformedPokemonMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
MagicBounce
public MagicBounce()
-
-
Method Details
-
allowsIncomingAttack
public boolean allowsIncomingAttack(PixelmonWrapper abilityUser, PixelmonWrapper attackUser, Attack a) Description copied from interface:AbilityDetermines whether an incoming attack can hit the Pokémon- Parameters:
abilityUser- The Pokémon with the Ability.attackUser- The attack's user.a- The attack.- Returns:
- Whether the attack can hit the Pokémon.
-
allowsIncomingAttackNoReflect
public boolean allowsIncomingAttackNoReflect(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a) -
allowsIncomingAttackTeammate
public boolean allowsIncomingAttackTeammate(PixelmonWrapper abilityUser, PixelmonWrapper target, PixelmonWrapper attackUser, Attack a) Description copied from interface:AbilityDetermines whether an incoming attack can hit a teammate Pokémon- Parameters:
abilityUser- The Pokémon with the Ability.target- The teammate being targeted.attackUser- The attack's user.a- The attack.- Returns:
- Whether the attack can hit the Pokémon.
-
canBeIgnored
public boolean canBeIgnored()Description copied from interface:AbilityReturns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo- Returns:
- Whether the ability can be ignored.
-