pokemon-rogue-battle
    Preparing search index...

    Class LastMoveDoublePowerAttr

    Attribute used for moves that double in power if the given move immediately preceded the move applying the attribute, namely Fusion Flare and Fusion Bolt.

    apply

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    selfTarget: boolean

    Should this Move target the user?

    Methods

    • Doubles power of move if the given move is found to precede the current move with no other moves being executed in between, only ignoring failed moves if any.

      Parameters

      Returns boolean

      true if attribute application succeeds, false otherwise

    • 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"
            | "LevelDamageAttr"
            | "RandomLevelDamageAttr"
            | "ModifiedDamageAttr"
            | "SurviveDamageAttr"
            | "SplashAttr"
            | "CelebrateAttr"
            | "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"
            | "VariableMoveTypeMultiplierAttr"
            | "NeutralDamageAgainstFlyingTypeMultiplierAttr"
            | "IceNoEffectTypeAttr"
            | "FlyingTypeMultiplierAttr"
            | "VariableMoveTypeChartAttr"
            | "FreezeDryAttr"
            | "OneHitKOAccuracyAttr"
            | "SheerColdAccuracyAttr"
            | "MissEffectAttr"
            | "NoEffectAttr"
            | "TypelessAttr"
            | "BypassRedirectAttr"
            | "FrenzyAttr"
            | "SemiInvulnerableAttr"
            | "LeechSeedAttr"
            | "FallDownAttr"
            | "GulpMissileTagAttr"
            | "JawLockAttr"
            | "CurseAttr"
            | "LapseBattlerTagAttr"
            | "RemoveBattlerTagAttr"
            | "FlinchAttr"
            | "ConfuseAttr"
            | "RechargeAttr"
            | "TrapAttr"
            | "ProtectAttr"
            | "IgnoreAccuracyAttr"
            | "FaintCountdownAttr"
            | "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"
            | "LastResortAttr"
            | "VariableTargetAttr"
            | "AfterYouAttr"
            | "ForceLastAttr"
            | "HitsSameTypeAttr"
            | "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.