Class GulpMissile
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.GulpMissile
- All Implemented Interfaces:
Ability
,RarityTweak
,ITranslatable
This ability is weird. When Surf or Dive is used, changes form based on % HP remaining.
Then, when hit by an attack, deals retaliatory damage with a secondary effect based on the % HP from before.
Dynamax ends this effect early.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDynamaxEffect
(PixelmonWrapper pokemon) Triggers when the Pokémon Dynamaxes.void
applySwitchOutEffect
(PixelmonWrapper oldPokemon) Triggers when the Pokémon switches out.boolean
Returns whether the ability can be disabled by external effects eg.void
postProcessAttackUserHitOrMiss
(PixelmonWrapper pokemon, PixelmonWrapper target, Attack a) Triggers after the Pokémon attacks, no matter if the Pokémon hits or misses.void
tookDamageTarget
(int damage, PixelmonWrapper user, PixelmonWrapper target, Attack a) Triggers after the Pokémon takes damage.boolean
Returns whether the ability is active for Transformed pokemon.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
equals, getName, getNewInstance, getTranslationKey, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.ability.Ability
adjustCriticalHitChance, adjustCritStage, allowsAttack, allowsIncomingAttack, allowsIncomingAttackMessage, allowsIncomingAttackTeammate, allowsOutgoingAttack, allowsStatChange, allowsStatChangeTeammate, allowsStatus, allowsStatusOpponent, allowsStatusTeammate, alwaysConsideredDamaged, applyAllySwitchInEffect, applyCritMultiplier, applyEffectOnContactTarget, applyEffectOnContactTargetLate, applyEffectOnContactUser, applyEffectOnStatModified, applyEndOfBattleEffect, applyFoeSwitchInEffect, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applyStartOfBattleEffect, applyStartOfBattleHeadOfPartyEffect, applyStartOfTurnEffect, applySwitchInEffect, applySwitchReplaceEffect, beforeSwitch, canAttackThisTurn, canBeCopied, canBeEntrained, canBeIgnored, canBeReceived, canBeRoleplayed, canBeSwapped, canBeTraced, canPerish, doesAttackUserIgnoreProtect, doesContactAttackMakeContact, getMultiplier, ignoreEvasion, 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, onTerrainSwitch, onWeatherChange, postProcessAttack, postProcessAttackOther, postProcessAttackUser, preProcessAttack, preProcessAttackStatBeforeDamageCalc, preProcessAttackUser, preventsCriticalHits, preventsItemRemoval, preventsRedirection, redirectAttack, sendActivatedMessage, startMove, stopsForcedSwitches, stopsSwitching, tookDamageTargetAfterMove, tookDamageUser
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
GulpMissile
public GulpMissile()
-
-
Method Details
-
postProcessAttackUserHitOrMiss
public void postProcessAttackUserHitOrMiss(PixelmonWrapper pokemon, PixelmonWrapper target, Attack a) Description copied from interface:Ability
Triggers after the Pokémon attacks, no matter if the Pokémon hits or misses.- Parameters:
pokemon
- The Pokémon with the Ability.target
- The attack's target.a
- The attack.
-
tookDamageTarget
Description copied from interface:Ability
Triggers after the Pokémon takes damage.- Parameters:
damage
- The amount of damage dealt.user
- The attack's user.target
- The attack's target.a
- The attack.
-
applySwitchOutEffect
Description copied from interface:Ability
Triggers when the Pokémon switches out.- Parameters:
oldPokemon
- The Pokémon switching out.
-
applyDynamaxEffect
Description copied from interface:Ability
Triggers when the Pokémon Dynamaxes.- Parameters:
pokemon
- The Pokémon Dynamaxing.
-
canBeDisabled
public boolean canBeDisabled()Description copied from interface:Ability
Returns whether the ability can be disabled by external effects eg. Neutralizing Gas.- Returns:
- Whether the ability can be disabled.
-
worksWithTransformedPokemon
public boolean worksWithTransformedPokemon()Description copied from interface:Ability
Returns whether the ability is active for Transformed pokemon.- Returns:
- Whether the ability can be used by transformed pokemon.
-