PokéRogue
    Preparing search index...

    Class FormBlockDamageAbAttrSealed

    Ability attribute to nullify damage from moves used against the user depending on their form. This is used in the Disguise and Ice Face abilities.

    Does not apply to a user's substitute

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    formIndex: number
    i18nKey: string

    The i18n locales key to show upon triggering. Within it, the following variables will be populated:

    • pokemonNameWithAffix: The name of the Pokémon with the ability
    • abilityName: The name of the ability being triggered
    recoil: number

    The percentage of maximum HP to deal in recoil, or 0 to deal none.

    showAbility: boolean = true

    Whether to show this ability as a flyout when applying its effects. Should be kept in parity with mainline where possible.

    true

    Methods

    • Return whether this attribute is of the given type.

      Type Parameters

      • K extends
            | "AddSecondStrikeAbAttr"
            | "AlliedFieldDamageReductionAbAttr"
            | "AllyMoveCategoryPowerBoostAbAttr"
            | "AllyStatMultiplierAbAttr"
            | "AlwaysHitAbAttr"
            | "ArenaTrapAbAttr"
            | "AttackTypeImmunityAbAttr"
            | "BattlerTagImmunityAbAttr"
            | "BlockCritAbAttr"
            | "BlockItemTheftAbAttr"
            | "BlockNonDirectDamageAbAttr"
            | "BlockOneHitKOAbAttr"
            | "BlockRecoilDamageAttr"
            | "BlockRedirectAbAttr"
            | "BlockStatusDamageAbAttr"
            | "BonusCritAbAttr"
            | "BypassBurnDamageReductionAbAttr"
            | "BypassSpeedChanceAbAttr"
            | "ChangeMovePriorityAbAttr"
            | "ChangeMovePriorityInBracketAbAttr"
            | "CheckTrappedAbAttr"
            | "CommanderAbAttr"
            | "ConditionalCritAbAttr"
            | "ConditionalUserFieldBattlerTagImmunityAbAttr"
            | "ConditionalUserFieldProtectStatAbAttr"
            | "ConditionalUserFieldStatusEffectImmunityAbAttr"
            | "ConfusionOnStatusEffectAbAttr"
            | "CopyFaintedAllyAbilityAbAttr"
            | "CudChewConsumeBerryAbAttr"
            | "CudChewRecordBerryAbAttr"
            | "DoubleBattleChanceAbAttr"
            | "DoubleBerryEffectAbAttr"
            | "DownloadAbAttr"
            | "EffectSporeAbAttr"
            | "ExecutedMoveAbAttr"
            | "FetchBallAbAttr"
            | "FieldMovePowerBoostAbAttr"
            | "FieldMoveTypePowerBoostAbAttr"
            | "FieldMultiplyStatAbAttr"
            | "FieldPreventExplosiveMovesAbAttr"
            | "FieldPriorityMoveImmunityAbAttr"
            | "FlinchEffectAbAttr"
            | "FlinchStatStageChangeAbAttr"
            | "ForceSwitchOutImmunityAbAttr"
            | "ForewarnAbAttr"
            | "FormBlockDamageAbAttr"
            | "FriskAbAttr"
            | "FullHpResistTypeAbAttr"
            | "GorillaTacticsAbAttr"
            | "HealFromBerryUseAbAttr"
            | "IgnoreContactAbAttr"
            | "IgnoreMoveEffectsAbAttr"
            | "IgnoreOpponentStatStagesAbAttr"
            | "IgnoreProtectOnContactAbAttr"
            | "IgnoreTypeImmunityAbAttr"
            | "IgnoreTypeStatusEffectImmunityAbAttr"
            | "IllusionBreakAbAttr"
            | "IllusionPostBattleAbAttr"
            | "IllusionPreSummonAbAttr"
            | "IncreasePpAbAttr"
            | "InfiltratorAbAttr"
            | "IntimidateImmunityAbAttr"
            | "LowHpMoveTypePowerBoostAbAttr"
            | "MaxMultiHitAbAttr"
            | "MoneyAbAttr"
            | "MoodyAbAttr"
            | "MoveAbilityBypassAbAttr"
            | "MoveDamageBoostAbAttr"
            | "MoveEffectChanceMultiplierAbAttr"
            | "MoveImmunityAbAttr"
            | "MoveImmunityStatStageChangeAbAttr"
            | "MovePowerBoostAbAttr"
            | "MoveTypeChangeAbAttr"
            | "MoveTypePowerBoostAbAttr"
            | "MultCritAbAttr"
            | "NoFusionAbilityAbAttr"
            | "NoTransformAbilityAbAttr"
            | "NonSuperEffectiveImmunityAbAttr"
            | "PokemonTypeChangeAbAttr"
            | "PostAttackAbAttr"
            | "PostAttackApplyBattlerTagAbAttr"
            | "PostAttackApplyStatusEffectAbAttr"
            | "PostAttackContactApplyStatusEffectAbAttr"
            | "PostAttackStealHeldItemAbAttr"
            | "PostBattleAbAttr"
            | "PostBattleInitAbAttr"
            | "PostBattleInitFormChangeAbAttr"
            | "PostBattleLootAbAttr"
            | "PostBiomeChangeAbAttr"
            | "PostBiomeChangeTerrainChangeAbAttr"
            | "PostBiomeChangeWeatherChangeAbAttr"
            | "PostDamageAbAttr"
            | "PostDamageForceSwitchAbAttr"
            | "PostDancingMoveAbAttr"
            | "PostDefendAbAttr"
            | "PostDefendAbilityGiveAbAttr"
            | "PostDefendAbilitySwapAbAttr"
            | "PostDefendApplyArenaTrapTagAbAttr"
            | "PostDefendApplyBattlerTagAbAttr"
            | "PostDefendContactApplyStatusEffectAbAttr"
            | "PostDefendContactApplyTagChanceAbAttr"
            | "PostDefendContactDamageAbAttr"
            | "PostDefendHpGatedStatStageChangeAbAttr"
            | "PostDefendIllusionBreakAbAttr"
            | "PostDefendMoveDisableAbAttr"
            | "PostDefendPerishSongAbAttr"
            | "PostDefendStatStageChangeAbAttr"
            | "PostDefendStealHeldItemAbAttr"
            | "PostDefendTerrainChangeAbAttr"
            | "PostDefendTypeChangeAbAttr"
            | "PostDefendWeatherChangeAbAttr"
            | "PostFaintAbAttr"
            | "PostFaintContactDamageAbAttr"
            | "PostFaintHPDamageAbAttr"
            | "PostFaintUnsuppressedWeatherFormChangeAbAttr"
            | "PostIntimidateStatStageChangeAbAttr"
            | "PostItemLostAbAttr"
            | "PostItemLostApplyBattlerTagAbAttr"
            | "PostKnockOutAbAttr"
            | "PostKnockOutStatStageChangeAbAttr"
            | "PostMoveUsedAbAttr"
            | "PostReceiveCritStatStageChangeAbAttr"
            | "PostSetStatusAbAttr"
            | "PostStatStageChangeAbAttr"
            | "PostStatStageChangeStatStageChangeAbAttr"
            | "PostSummonAbAttr"
            | "PostSummonAddArenaTagAbAttr"
            | "PostSummonAddBattlerTagAbAttr"
            | "PostSummonAllyHealAbAttr"
            | "PostSummonClearAllyStatStagesAbAttr"
            | "PostSummonCopyAbilityAbAttr"
            | "PostSummonCopyAllyStatsAbAttr"
            | "PostSummonFormChangeAbAttr"
            | "PostSummonFormChangeByWeatherAbAttr"
            | "PostSummonHealStatusAbAttr"
            | "PostSummonMessageAbAttr"
            | "PostSummonRemoveArenaTagAbAttr"
            | "PostSummonRemoveBattlerTagAbAttr"
            | "PostSummonRemoveEffectAbAttr"
            | "PostSummonStatStageChangeAbAttr"
            | "PostSummonStatStageChangeOnArenaAbAttr"
            | "PostSummonTerrainChangeAbAttr"
            | "PostSummonTransformAbAttr"
            | "PostSummonUnnamedMessageAbAttr"
            | "PostSummonUserFieldRemoveStatusEffectAbAttr"
            | "PostSummonWeatherChangeAbAttr"
            | "PostSummonWeatherSuppressedFormChangeAbAttr"
            | "PostTerrainChangeAbAttr"
            | "PostTurnAbAttr"
            | "PostTurnFormChangeAbAttr"
            | "PostTurnHealAbAttr"
            | "PostTurnHurtIfSleepingAbAttr"
            | "PostTurnResetStatusAbAttr"
            | "PostTurnRestoreBerryAbAttr"
            | "PostTurnStatusHealAbAttr"
            | "PostVictoryAbAttr"
            | "PostVictoryFormChangeAbAttr"
            | "PostWeatherChangeAbAttr"
            | "PostWeatherChangeFormChangeAbAttr"
            | "IceFaceFormChangeAbAttr"
            | "PostWeatherLapseAbAttr"
            | "PostWeatherLapseDamageAbAttr"
            | "PostWeatherLapseHealAbAttr"
            | "PreApplyBattlerTagAbAttr"
            | "PreApplyBattlerTagImmunityAbAttr"
            | "PreAttackAbAttr"
            | "PreAttackFieldMoveTypePowerBoostAbAttr"
            | "PreDefendAbAttr"
            | "PreDefendFullHpEndureAbAttr"
            | "PreLeaveFieldAbAttr"
            | "PreLeaveFieldClearWeatherAbAttr"
            | "PreLeaveFieldRemoveSuppressAbilitiesSourceAbAttr"
            | "PreSetStatusAbAttr"
            | "PreSetStatusEffectImmunityAbAttr"
            | "PreStatStageChangeAbAttr"
            | "PreSummonAbAttr"
            | "PreSwitchOutAbAttr"
            | "PreSwitchOutFormChangeAbAttr"
            | "PreSwitchOutHealAbAttr"
            | "PreSwitchOutResetStatusAbAttr"
            | "PreWeatherDamageAbAttr"
            | "PreWeatherEffectAbAttr"
            | "PreventBerryUseAbAttr"
            | "PreventBypassSpeedChanceAbAttr"
            | "ProtectStatAbAttr"
            | "ReceivedMoveDamageMultiplierAbAttr"
            | "ReceivedTypeDamageMultiplierAbAttr"
            | "RedirectMoveAbAttr"
            | "RedirectTypeMoveAbAttr"
            | "ReduceBerryUseThresholdAbAttr"
            | "ReduceBurnDamageAbAttr"
            | "ReduceStatusEffectDurationAbAttr"
            | "ReflectStatStageChangeAbAttr"
            | "ReflectStatusMoveAbAttr"
            | "ReverseDrainAbAttr"
            | "RunSuccessAbAttr"
            | "SpeedBoostAbAttr"
            | "StabBoostAbAttr"
            | "StatMultiplierAbAttr"
            | "StatStageChangeCopyAbAttr"
            | "StatStageChangeMultiplierAbAttr"
            | "StatusEffectImmunityAbAttr"
            | "SuppressWeatherEffectAbAttr"
            | "SyncEncounterNatureAbAttr"
            | "SynchronizeStatusAbAttr"
            | "TerrainEventTypeChangeAbAttr"
            | "TypeImmunityAbAttr"
            | "TypeImmunityHealAbAttr"
            | "UserFieldBattlerTagImmunityAbAttr"
            | "UserFieldMoveTypePowerBoostAbAttr"
            | "UserFieldStatusEffectImmunityAbAttr"
            | "VariableMovePowerAbAttr"
            | "VariableMovePowerBoostAbAttr"
            | "WeightMultiplierAbAttr"
            | "WonderSkinAbAttr"
            | "AiMovegenMoveStatsAbAttr"
            | "SummonTerrainAiMovegenMoveStatsAbAttr"

      Parameters

      • attr: K

        The attribute to check against

      Returns this is AbAttrMap[K]

      Whether the attribute is an instance of the given type

      Used to avoid requiring the caller to have imported the specific attribute type, avoiding circular dependencies.