mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-22 01:35:31 -05:00
Prevent G-Max moves from being used in Hackmons
This commit is contained in:
parent
76af2288e3
commit
32e193b2b9
|
|
@ -6810,7 +6810,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side either falls asleep, becomes poisoned, or becomes paralyzed, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: slp or psn or par.",
|
||||
id: "gmaxbefuddle",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Befuddle",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6842,7 +6842,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side is prevented from switching for four or five turns (seven turns if the user is holding Grip Claw), even if they have a substitute. Causes damage equal to 1/8 of their maximum HP (1/6 if the user is holding Binding Band), rounded down, at the end of each turn during effect. They can still switch out if they are holding Shed Shell or use Baton Pass, Parting Shot, Teleport, U-turn, or Volt Switch. The effect ends for a target if it leaves the field, or if it uses Rapid Spin or Substitute successfully. This effect is not stackable or reset by using this or another binding move.",
|
||||
shortDesc: "Base move affects power. Foes: bound 4-5 turns.",
|
||||
id: "gmaxcentiferno",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Centiferno",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6868,7 +6868,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the user's side gains the Focus Energy effect, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Allies: Focus Energy.",
|
||||
id: "gmaxchistrike",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Chi Strike",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6894,7 +6894,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side becomes infatuated, even if they have a substitute. This effect does not happen for a target if both it and the user are the same gender, if either is genderless, or if the target is already infatuated.",
|
||||
shortDesc: "Base move affects power. Foes: infatuated.",
|
||||
id: "gmaxcuddle",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Cuddle",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6920,7 +6920,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side loses 2 PP from its last move used, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: last move -2 PP.",
|
||||
id: "gmaxdepletion",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Depletion",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6954,7 +6954,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the user's side restores 1/6 of its current maximum HP, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Allies: +1/6 max HP.",
|
||||
id: "gmaxfinale",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Finale",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -6980,7 +6980,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the Speed of each Pokemon on the opposing side is lowered by 2 stages, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: -2 Speed.",
|
||||
id: "gmaxfoamburst",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Foam Burst",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7006,7 +7006,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side becomes confused, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: confused.",
|
||||
id: "gmaxgoldrush",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Gold Rush",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7032,7 +7032,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the effect of Gravity begins.",
|
||||
shortDesc: "Base move affects power. Starts Gravity.",
|
||||
id: "gmaxgravitas",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Gravitas",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7053,7 +7053,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side becomes poisoned, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: poisoned.",
|
||||
id: "gmaxmalodor",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Malodor",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7078,7 +7078,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the effect of Torment begins for each Pokemon on the opposing side, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: Tormented.",
|
||||
id: "gmaxmeltdown",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Meltdown",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7104,7 +7104,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, there is a 50% chance every Pokemon on the user's side has its Berry restored, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. 50% restores Berries.",
|
||||
id: "gmaxreplenish",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Replenish",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7136,7 +7136,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the effect of Aurora Veil begins on the user's side.",
|
||||
shortDesc: "Base move affects power. Allies: Aurora Veil.",
|
||||
id: "gmaxresonance",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Resonance",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7158,7 +7158,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side is prevented from switching for four or five turns (seven turns if the user is holding Grip Claw), even if they have a substitute. Causes damage equal to 1/8 of their maximum HP (1/6 if the user is holding Binding Band), rounded down, at the end of each turn during effect. They can still switch out if they are holding Shed Shell or use Baton Pass, Parting Shot, Teleport, U-turn, or Volt Switch. The effect ends for a target if it leaves the field, or if it uses Rapid Spin or Substitute successfully. This effect is not stackable or reset by using this or another binding move.",
|
||||
shortDesc: "Base move affects power. Foes: bound 4-5 turns.",
|
||||
id: "gmaxsandblast",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Sandblast",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7184,7 +7184,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side becomes confused, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: confused.",
|
||||
id: "gmaxsmite",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Smite",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7210,7 +7210,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, there is a 50% chance the effect of Yawn begins on the target, even if it has a substitute.",
|
||||
shortDesc: "Base move affects power. Target: 50% Yawn.",
|
||||
id: "gmaxsnooze",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Snooze",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7239,7 +7239,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, it sets up a hazard on the opposing side of the field, damaging each opposing Pokemon that switches in. Foes lose 1/32, 1/16, 1/8, 1/4, or 1/2 of their maximum HP, rounded down, based on their weakness to the Steel type; 0.25x, 0.5x, neutral, 2x, or 4x, respectively. Can be removed from the opposing side if any opposing Pokemon uses Rapid Spin or Defog successfully, or is hit by Defog.",
|
||||
shortDesc: "Base move affects power. Foes: Steel hazard.",
|
||||
id: "gmaxsteelsurge",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Steelsurge",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7279,7 +7279,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, it sets up a hazard on the opposing side of the field, damaging each opposing Pokemon that switches in. Foes lose 1/32, 1/16, 1/8, 1/4, or 1/2 of their maximum HP, rounded down, based on their weakness to the Rock type; 0.25x, 0.5x, neutral, 2x, or 4x, respectively. Can be removed from the opposing side if any opposing Pokemon uses Rapid Spin or Defog successfully, or is hit by Defog.",
|
||||
shortDesc: "Base move affects power. Foes: Stealth Rock.",
|
||||
id: "gmaxstonesurge",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Stonesurge",
|
||||
pp: 5,
|
||||
priority: 0,
|
||||
|
|
@ -7303,7 +7303,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side either becomes poisoned or paralyzed, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: psn or par.",
|
||||
id: "gmaxstunshock",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Stun Shock",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7334,7 +7334,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the user's side has its status condition cured, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Allies: status cured.",
|
||||
id: "gmaxsweetness",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Sweetness",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7360,7 +7360,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the evasiveness of each Pokemon on the opposing side is lowered by 1 stage, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: -1 evasiveness.",
|
||||
id: "gmaxtartness",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Tartness",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7386,7 +7386,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side is prevented from switching out, even if they have a substitute. They can still switch out if they are holding Shed Shell or use Baton Pass, Parting Shot, U-turn, or Volt Switch. If a target leaves the field using Baton Pass, the replacement will remain trapped. The effect ends if the user leaves the field.",
|
||||
shortDesc: "Base move affects power. Foes: trapped.",
|
||||
id: "gmaxterror",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Terror",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7412,7 +7412,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, for 4 turns each non-Rock-type Pokemon on the opposing side takes damage equal to 1/6 of its maximum HP, rounded down, at the end of each turn during effect, including the last turn.",
|
||||
shortDesc: "Base move affects power. Foes: -1/6 HP, 4 turns.",
|
||||
id: "gmaxvolcalith",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Volcalith",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7453,7 +7453,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, each Pokemon on the opposing side becomes paralyzed, even if they have a substitute.",
|
||||
shortDesc: "Base move affects power. Foes: paralyzed.",
|
||||
id: "gmaxvoltcrash",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Volt Crash",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7479,7 +7479,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, for 4 turns each non-Fire-type Pokemon on the opposing side takes damage equal to 1/6 of its maximum HP, rounded down, at the end of each turn during effect, including the last turn.",
|
||||
shortDesc: "Base move affects power. Foes: -1/6 HP, 4 turns.",
|
||||
id: "gmaxwildfire",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Wildfire",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
@ -7520,7 +7520,7 @@ let BattleMovedex = {
|
|||
desc: "Power is equal to the base move's Max Move power. If this move is successful, the effects of Electric Terrain, Grassy Terrain, Misty Terrain, and Psychic Terrain end, the effects of Reflect, Light Screen, Aurora Veil, Safeguard, Mist, G-Max Steelsurge, Spikes, Toxic Spikes, Stealth Rock, and Sticky Web end for the target's side, and the effects of G-Max Steelsurge, Spikes, Toxic Spikes, Stealth Rock, and Sticky Web end for the user's side.",
|
||||
shortDesc: "Base move affects power. Ends Terrain, hazards.",
|
||||
id: "gmaxwindrage",
|
||||
isNonstandard: "Unobtainable",
|
||||
isNonstandard: "G-Max",
|
||||
name: "G-Max Wind Rage",
|
||||
pp: 10,
|
||||
priority: 0,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ type SparseStatsTable = Partial<StatsTable>;
|
|||
type BoostName = StatNameExceptHP | 'accuracy' | 'evasion';
|
||||
type BoostsTable = {[boost in BoostName]: number };
|
||||
type SparseBoostsTable = Partial<BoostsTable>;
|
||||
type Nonstandard = 'Past' | 'Future' | 'Unobtainable' | 'CAP' | 'LGPE' | 'Custom';
|
||||
type Nonstandard = 'Past' | 'Future' | 'Unobtainable' | 'CAP' | 'LGPE' | 'G-Max' | 'Custom';
|
||||
/**
|
||||
* Describes the acceptable target(s) of a move.
|
||||
* adjacentAlly - Only relevant to Doubles or Triples, the move only targets an ally of the user.
|
||||
|
|
|
|||
|
|
@ -1362,6 +1362,9 @@ export class TeamValidator {
|
|||
if (['Past', 'Future'].includes(move.isNonstandard)) {
|
||||
return `${set.name}'s move ${move.name} does not exist in Gen ${dex.gen}.`;
|
||||
}
|
||||
if (move.isNonstandard === 'G-Max') {
|
||||
return `${set.name}'s move ${move.name} is not obtainable without Gigantamaxing.`;
|
||||
}
|
||||
return `${set.name}'s move ${move.name} does not exist in this game.`;
|
||||
}
|
||||
if (banReason === '') return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user