PokéRogue
    Preparing search index...

    Interface MoveTypeChartOverrideAttrAbstract

    Attribute for moves which have a custom type chart interaction.

    interface MoveTypeChartOverrideAttr {
        selfTarget: boolean;
        apply(
            user: Pokemon,
            target: Pokemon,
            move: Move,
            args: [
                multiplier: NumberHolder<number>,
                types: readonly PokemonType[],
                moveType: PokemonType,
            ],
        ): boolean;
        getCondition(): MoveCondition | MoveConditionFunc | null;
        getFailedText(
            _user: Pokemon,
            _target: Pokemon,
            _move: Move,
        ): string | undefined;
        getTargetBenefitScore(
            _user: Pokemon,
            _target: Pokemon,
            _move: Move,
        ): number;
        getUserBenefitScore(_user: Pokemon, _target: Pokemon, _move: Move): number;
        is<
            T extends
                | "DelayedAttackAttr"
                | "MoveEffectAttr"
                | "MoveHeaderAttr"
                | "MessageHeaderAttr"
                | "AddBattlerTagAttr"
                | "AddBattlerTagHeaderAttr"
                | "BeakBlastHeaderAttr"
                | "PreMoveMessageAttr"
                | "PreUseInterruptAttr"
                | "RespectAttackTypeImmunityAttr"
                | "IgnoreOpponentStatStagesAttr"
                | "HighCritAttr"
                | "CritOnlyAttr"
                | "FixedDamageAttr"
                | "UserHpDamageAttr"
                | "TargetHalfHpDamageAttr"
                | "MatchHpAttr"
                | "CounterDamageAttr"
                | "CounterRedirectAttr"
                | "LevelDamageAttr"
                | "RandomLevelDamageAttr"
                | "ModifiedDamageAttr"
                | "SurviveDamageAttr"
                | "RecoilAttr"
                | "SacrificialAttr"
                | "SacrificialAttrOnHit"
                | "HalfSacrificialAttr"
                | "AddSubstituteAttr"
                | "HealAttr"
                | "PartyStatusCureAttr"
                | "FlameBurstAttr"
                | "SacrificialFullRestoreAttr"
                | "IgnoreWeatherTypeDebuffAttr"
                | "WeatherHealAttr"
                | "PlantHealAttr"
                | "SandHealAttr"
                | "BoostHealAttr"
                | "HealOnAllyAttr"
                | "HitHealAttr"
                | "IncrementMovePriorityAttr"
                | "MultiHitAttr"
                | "ChangeMultiHitTypeAttr"
                | "WaterShurikenMultiHitTypeAttr"
                | "StatusEffectAttr"
                | "MultiStatusEffectAttr"
                | "PsychoShiftEffectAttr"
                | "StealHeldItemChanceAttr"
                | "RemoveHeldItemAttr"
                | "EatBerryAttr"
                | "StealEatBerryAttr"
                | "HealStatusEffectAttr"
                | "BypassSleepAttr"
                | "BypassBurnDamageReductionAttr"
                | "WeatherChangeAttr"
                | "ClearWeatherAttr"
                | "TerrainChangeAttr"
                | "ClearTerrainAttr"
                | "OneHitKOAttr"
                | "InstantChargeAttr"
                | "WeatherInstantChargeAttr"
                | "OverrideMoveEffectAttr"
                | "AwaitCombinedPledgeAttr"
                | "StatStageChangeAttr"
                | "SecretPowerAttr"
                | "PostVictoryStatStageChangeAttr"
                | "AcupressureStatStageChangeAttr"
                | "GrowthStatStageChangeAttr"
                | "CutHpStatStageBoostAttr"
                | "OrderUpStatBoostAttr"
                | "CopyStatsAttr"
                | "InvertStatsAttr"
                | "ResetStatsAttr"
                | "SwapStatStagesAttr"
                | "HpSplitAttr"
                | "VariablePowerAttr"
                | "LessPPMorePowerAttr"
                | "MovePowerMultiplierAttr"
                | "BeatUpAttr"
                | "DoublePowerChanceAttr"
                | "ConsecutiveUsePowerMultiplierAttr"
                | "ConsecutiveUseDoublePowerAttr"
                | "ConsecutiveUseMultiBasePowerAttr"
                | "WeightPowerAttr"
                | "ElectroBallPowerAttr"
                | "GyroBallPowerAttr"
                | "LowHpPowerAttr"
                | "CompareWeightPowerAttr"
                | "HpPowerAttr"
                | "OpponentHighHpPowerAttr"
                | "TurnDamagedDoublePowerAttr"
                | "MagnitudePowerAttr"
                | "AntiSunlightPowerDecreaseAttr"
                | "FriendshipPowerAttr"
                | "RageFistPowerAttr"
                | "PositiveStatStagePowerAttr"
                | "PunishmentPowerAttr"
                | "PresentPowerAttr"
                | "WaterShurikenPowerAttr"
                | "SpitUpPowerAttr"
                | "SwallowHealAttr"
                | "MultiHitPowerIncrementAttr"
                | "LastMoveDoublePowerAttr"
                | "CombinedPledgePowerAttr"
                | "CombinedPledgeStabBoostAttr"
                | "RoundPowerAttr"
                | "CueNextRoundAttr"
                | "StatChangeBeforeDmgCalcAttr"
                | "SpectralThiefAttr"
                | "VariableAtkAttr"
                | "TargetAtkUserAtkAttr"
                | "DefAtkAttr"
                | "VariableDefAttr"
                | "DefDefAttr"
                | "VariableAccuracyAttr"
                | "ThunderAccuracyAttr"
                | "StormAccuracyAttr"
                | "AlwaysHitMinimizeAttr"
                | "ToxicAccuracyAttr"
                | "BlizzardAccuracyAttr"
                | "VariableMoveCategoryAttr"
                | "PhotonGeyserCategoryAttr"
                | "TeraMoveCategoryAttr"
                | "TeraBlastPowerAttr"
                | "StatusCategoryOnAllyAttr"
                | "ShellSideArmCategoryAttr"
                | "VariableMoveTypeAttr"
                | "FormChangeItemTypeAttr"
                | "TechnoBlastTypeAttr"
                | "AuraWheelTypeAttr"
                | "RagingBullTypeAttr"
                | "IvyCudgelTypeAttr"
                | "WeatherBallTypeAttr"
                | "TerrainPulseTypeAttr"
                | "HiddenPowerTypeAttr"
                | "TeraBlastTypeAttr"
                | "TeraStarstormTypeAttr"
                | "MatchUserTypeAttr"
                | "CombinedPledgeTypeAttr"
                | "NeutralDamageAgainstFlyingTypeAttr"
                | "IceNoEffectTypeAttr"
                | "FlyingTypeMultiplierAttr"
                | "MoveTypeChartOverrideAttr"
                | "FreezeDryAttr"
                | "OneHitKOAccuracyAttr"
                | "HitsSameTypeAttr"
                | "SheerColdAccuracyAttr"
                | "MissEffectAttr"
                | "NoEffectAttr"
                | "TypelessAttr"
                | "BypassRedirectAttr"
                | "FrenzyAttr"
                | "SemiInvulnerableAttr"
                | "LeechSeedAttr"
                | "FallDownAttr"
                | "GulpMissileTagAttr"
                | "JawLockAttr"
                | "CurseAttr"
                | "RemoveBattlerTagAttr"
                | "FlinchAttr"
                | "ConfuseAttr"
                | "RechargeAttr"
                | "TrapAttr"
                | "ProtectAttr"
                | "MessageAttr"
                | "RemoveAllSubstitutesAttr"
                | "HitsTagAttr"
                | "HitsTagForDoubleDamageAttr"
                | "AddArenaTagAttr"
                | "RemoveArenaTagsAttr"
                | "AddArenaTrapTagAttr"
                | "AddArenaTrapTagHitAttr"
                | "RemoveArenaTrapAttr"
                | "RemoveScreensAttr"
                | "SwapArenaTagsAttr"
                | "AddPledgeEffectAttr"
                | "RevivalBlessingAttr"
                | "ForceSwitchOutAttr"
                | "ChillyReceptionAttr"
                | "RemoveTypeAttr"
                | "CopyTypeAttr"
                | "CopyBiomeTypeAttr"
                | "ChangeTypeAttr"
                | "AddTypeAttr"
                | "FirstMoveTypeAttr"
                | "CallMoveAttr"
                | "RandomMoveAttr"
                | "RandomMovesetMoveAttr"
                | "NaturePowerAttr"
                | "CopyMoveAttr"
                | "RepeatMoveAttr"
                | "ReducePpMoveAttr"
                | "AttackReducePpMoveAttr"
                | "MovesetCopyMoveAttr"
                | "SketchAttr"
                | "AbilityChangeAttr"
                | "AbilityCopyAttr"
                | "AbilityGiveAttr"
                | "SwitchAbilitiesAttr"
                | "SuppressAbilitiesAttr"
                | "TransformAttr"
                | "SwapStatAttr"
                | "ShiftStatAttr"
                | "AverageStatsAttr"
                | "MoneyAttr"
                | "DestinyBondAttr"
                | "AddBattlerTagIfBoostedAttr"
                | "StatusIfBoostedAttr"
                | "VariableTargetAttr"
                | "AfterYouAttr"
                | "ForceLastAttr"
                | "ResistLastMoveTypeAttr"
                | "ExposedMoveAttr",
        >(
            attr: T,
        ): this is MoveAttrMap[T];
    }

    Hierarchy (View Summary)

    Index

    Properties

    selfTarget: boolean

    Should this Move target the user?

    Methods

    • Return whether this attribute is of the given type.

      Type Parameters

      • T extends
            | "DelayedAttackAttr"
            | "MoveEffectAttr"
            | "MoveHeaderAttr"
            | "MessageHeaderAttr"
            | "AddBattlerTagAttr"
            | "AddBattlerTagHeaderAttr"
            | "BeakBlastHeaderAttr"
            | "PreMoveMessageAttr"
            | "PreUseInterruptAttr"
            | "RespectAttackTypeImmunityAttr"
            | "IgnoreOpponentStatStagesAttr"
            | "HighCritAttr"
            | "CritOnlyAttr"
            | "FixedDamageAttr"
            | "UserHpDamageAttr"
            | "TargetHalfHpDamageAttr"
            | "MatchHpAttr"
            | "CounterDamageAttr"
            | "CounterRedirectAttr"
            | "LevelDamageAttr"
            | "RandomLevelDamageAttr"
            | "ModifiedDamageAttr"
            | "SurviveDamageAttr"
            | "RecoilAttr"
            | "SacrificialAttr"
            | "SacrificialAttrOnHit"
            | "HalfSacrificialAttr"
            | "AddSubstituteAttr"
            | "HealAttr"
            | "PartyStatusCureAttr"
            | "FlameBurstAttr"
            | "SacrificialFullRestoreAttr"
            | "IgnoreWeatherTypeDebuffAttr"
            | "WeatherHealAttr"
            | "PlantHealAttr"
            | "SandHealAttr"
            | "BoostHealAttr"
            | "HealOnAllyAttr"
            | "HitHealAttr"
            | "IncrementMovePriorityAttr"
            | "MultiHitAttr"
            | "ChangeMultiHitTypeAttr"
            | "WaterShurikenMultiHitTypeAttr"
            | "StatusEffectAttr"
            | "MultiStatusEffectAttr"
            | "PsychoShiftEffectAttr"
            | "StealHeldItemChanceAttr"
            | "RemoveHeldItemAttr"
            | "EatBerryAttr"
            | "StealEatBerryAttr"
            | "HealStatusEffectAttr"
            | "BypassSleepAttr"
            | "BypassBurnDamageReductionAttr"
            | "WeatherChangeAttr"
            | "ClearWeatherAttr"
            | "TerrainChangeAttr"
            | "ClearTerrainAttr"
            | "OneHitKOAttr"
            | "InstantChargeAttr"
            | "WeatherInstantChargeAttr"
            | "OverrideMoveEffectAttr"
            | "AwaitCombinedPledgeAttr"
            | "StatStageChangeAttr"
            | "SecretPowerAttr"
            | "PostVictoryStatStageChangeAttr"
            | "AcupressureStatStageChangeAttr"
            | "GrowthStatStageChangeAttr"
            | "CutHpStatStageBoostAttr"
            | "OrderUpStatBoostAttr"
            | "CopyStatsAttr"
            | "InvertStatsAttr"
            | "ResetStatsAttr"
            | "SwapStatStagesAttr"
            | "HpSplitAttr"
            | "VariablePowerAttr"
            | "LessPPMorePowerAttr"
            | "MovePowerMultiplierAttr"
            | "BeatUpAttr"
            | "DoublePowerChanceAttr"
            | "ConsecutiveUsePowerMultiplierAttr"
            | "ConsecutiveUseDoublePowerAttr"
            | "ConsecutiveUseMultiBasePowerAttr"
            | "WeightPowerAttr"
            | "ElectroBallPowerAttr"
            | "GyroBallPowerAttr"
            | "LowHpPowerAttr"
            | "CompareWeightPowerAttr"
            | "HpPowerAttr"
            | "OpponentHighHpPowerAttr"
            | "TurnDamagedDoublePowerAttr"
            | "MagnitudePowerAttr"
            | "AntiSunlightPowerDecreaseAttr"
            | "FriendshipPowerAttr"
            | "RageFistPowerAttr"
            | "PositiveStatStagePowerAttr"
            | "PunishmentPowerAttr"
            | "PresentPowerAttr"
            | "WaterShurikenPowerAttr"
            | "SpitUpPowerAttr"
            | "SwallowHealAttr"
            | "MultiHitPowerIncrementAttr"
            | "LastMoveDoublePowerAttr"
            | "CombinedPledgePowerAttr"
            | "CombinedPledgeStabBoostAttr"
            | "RoundPowerAttr"
            | "CueNextRoundAttr"
            | "StatChangeBeforeDmgCalcAttr"
            | "SpectralThiefAttr"
            | "VariableAtkAttr"
            | "TargetAtkUserAtkAttr"
            | "DefAtkAttr"
            | "VariableDefAttr"
            | "DefDefAttr"
            | "VariableAccuracyAttr"
            | "ThunderAccuracyAttr"
            | "StormAccuracyAttr"
            | "AlwaysHitMinimizeAttr"
            | "ToxicAccuracyAttr"
            | "BlizzardAccuracyAttr"
            | "VariableMoveCategoryAttr"
            | "PhotonGeyserCategoryAttr"
            | "TeraMoveCategoryAttr"
            | "TeraBlastPowerAttr"
            | "StatusCategoryOnAllyAttr"
            | "ShellSideArmCategoryAttr"
            | "VariableMoveTypeAttr"
            | "FormChangeItemTypeAttr"
            | "TechnoBlastTypeAttr"
            | "AuraWheelTypeAttr"
            | "RagingBullTypeAttr"
            | "IvyCudgelTypeAttr"
            | "WeatherBallTypeAttr"
            | "TerrainPulseTypeAttr"
            | "HiddenPowerTypeAttr"
            | "TeraBlastTypeAttr"
            | "TeraStarstormTypeAttr"
            | "MatchUserTypeAttr"
            | "CombinedPledgeTypeAttr"
            | "NeutralDamageAgainstFlyingTypeAttr"
            | "IceNoEffectTypeAttr"
            | "FlyingTypeMultiplierAttr"
            | "MoveTypeChartOverrideAttr"
            | "FreezeDryAttr"
            | "OneHitKOAccuracyAttr"
            | "HitsSameTypeAttr"
            | "SheerColdAccuracyAttr"
            | "MissEffectAttr"
            | "NoEffectAttr"
            | "TypelessAttr"
            | "BypassRedirectAttr"
            | "FrenzyAttr"
            | "SemiInvulnerableAttr"
            | "LeechSeedAttr"
            | "FallDownAttr"
            | "GulpMissileTagAttr"
            | "JawLockAttr"
            | "CurseAttr"
            | "RemoveBattlerTagAttr"
            | "FlinchAttr"
            | "ConfuseAttr"
            | "RechargeAttr"
            | "TrapAttr"
            | "ProtectAttr"
            | "MessageAttr"
            | "RemoveAllSubstitutesAttr"
            | "HitsTagAttr"
            | "HitsTagForDoubleDamageAttr"
            | "AddArenaTagAttr"
            | "RemoveArenaTagsAttr"
            | "AddArenaTrapTagAttr"
            | "AddArenaTrapTagHitAttr"
            | "RemoveArenaTrapAttr"
            | "RemoveScreensAttr"
            | "SwapArenaTagsAttr"
            | "AddPledgeEffectAttr"
            | "RevivalBlessingAttr"
            | "ForceSwitchOutAttr"
            | "ChillyReceptionAttr"
            | "RemoveTypeAttr"
            | "CopyTypeAttr"
            | "CopyBiomeTypeAttr"
            | "ChangeTypeAttr"
            | "AddTypeAttr"
            | "FirstMoveTypeAttr"
            | "CallMoveAttr"
            | "RandomMoveAttr"
            | "RandomMovesetMoveAttr"
            | "NaturePowerAttr"
            | "CopyMoveAttr"
            | "RepeatMoveAttr"
            | "ReducePpMoveAttr"
            | "AttackReducePpMoveAttr"
            | "MovesetCopyMoveAttr"
            | "SketchAttr"
            | "AbilityChangeAttr"
            | "AbilityCopyAttr"
            | "AbilityGiveAttr"
            | "SwitchAbilitiesAttr"
            | "SuppressAbilitiesAttr"
            | "TransformAttr"
            | "SwapStatAttr"
            | "ShiftStatAttr"
            | "AverageStatsAttr"
            | "MoneyAttr"
            | "DestinyBondAttr"
            | "AddBattlerTagIfBoostedAttr"
            | "StatusIfBoostedAttr"
            | "VariableTargetAttr"
            | "AfterYouAttr"
            | "ForceLastAttr"
            | "ResistLastMoveTypeAttr"
            | "ExposedMoveAttr"

      Parameters

      • attr: T

        The attribute to check against

      Returns this is MoveAttrMap[T]

      Whether the attribute is an instance of the given type.

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