PokéRogue
    Preparing search index...

    Randomly raises and lowers stats at the end of the turn.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    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

    • Randomly increases one stat stage by 2 and decreases a different stat stage by 1.
      Any stat stages at +6 or -6 are excluded from being increased or decreased, respectively.
      If the pokemon already has all stat stages raised to 6, it will only decrease one stat stage by 1.
      If the pokemon already has all stat stages lowered to -6, it will only increase one stat stage by 2.

      Parameters

      Returns void

    • Return the trigger message to show when this attribute is executed.

      Parameters

      • _params: Exact<Parameters<this["apply"]>[0]>

        The parameters passed to this attribute's apply function; must match type exactly

      • _abilityName: string

        The name of the current ability.

      Returns string | null

      Remove null from signature in lieu of using an empty string

    • 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.