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"
| "OverrideWeatherMultiplierAttr"
| "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"
| "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"
| "PartingShotAttr"
Whether the attribute is an instance of the given type.
Implements the combined effect of lowering the target's stats and switching out the user.
See
https://bulbapedia.bulbagarden.net/wiki/Parting_Shot_(move)
Remarks
Because the stat drop phase is queued and not resolved immediately, this method silently simulates ability blocks and stat boundaries to accurately predict if the stat drop will succeed. This custom class ensures the switch only occurs if the stat drop is not blocked (e.g., by Clear Body or minimum stat stages), and prevents the move from failing outright if the user has no eligible party members.