Skip to content

Commit

Permalink
Explicitly make Terastallization tests Gen 9 (#10907)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebastosdias authored Feb 19, 2025
1 parent 6c57d48 commit 9fc5e0f
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 47 deletions.
4 changes: 2 additions & 2 deletions test/sim/abilities/hungerswitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("Hunger Switch", function () {
});

it("should stop activating when Morpeko Terastallizes", function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Morpeko', ability: 'hungerswitch', moves: ['rest']},
], [
{species: 'Magikarp', ability: 'Swift Swim', moves: ['splash']},
Expand All @@ -54,7 +54,7 @@ describe("Hunger Switch", function () {
});

it("should maintain its form when Terastallized, even when switched out", function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Morpeko', ability: 'hungerswitch', moves: ['rest']},
{species: 'Furret', ability: 'Run Away', moves: ['sleeptalk']},
], [
Expand Down
2 changes: 1 addition & 1 deletion test/sim/abilities/neutralizinggas.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ describe('Neutralizing Gas', function () {
});

it(`should not reactivate instances of Embody Aspect that had previously activated`, function () {
battle = common.createBattle({gameType: 'freeforall'}, [[
battle = common.gen(9).createBattle({gameType: 'freeforall'}, [[
{species: 'Ogerpon-Hearthflame', ability: 'moldbreaker', item: 'hearthflamemask', moves: ['bellydrum']},
], [
{species: 'Ogerpon-Wellspring', ability: 'waterabsorb', item: 'wellspringmask', moves: ['sleeptalk']},
Expand Down
2 changes: 1 addition & 1 deletion test/sim/items/abilityshield.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('Ability Shield', function () {
});

it(`should not prevent forme changes from changing the holder's ability`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'ogerpon', ability: 'defiant', item: 'abilityshield', moves: ['sleeptalk']},
], [
{species: 'scorbunny', ability: 'libero', moves: ['agility']},
Expand Down
6 changes: 3 additions & 3 deletions test/sim/misc/fainted-forme-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe(`Fainted forme regression`, function () {
});

it("should revert Terastallized Morpeko-Hangry to base Morpeko", function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Morpeko', ability: 'hungerswitch', moves: ['memento', 'sleeptalk']},
{species: 'darkrai', moves: ['darkpulse']},
], [
Expand Down Expand Up @@ -107,7 +107,7 @@ describe(`Fainted forme regression`, function () {
});

it(`should revert Ogerpon-Tera to base Ogerpon`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{
species: 'ogerponwellspring', ability: 'waterabsorb', item: 'wellspring mask',
moves: ['memento'], teraType: 'Water',
Expand Down Expand Up @@ -136,7 +136,7 @@ describe(`Fainted forme regression`, function () {
});

it(`should revert Terapagos-Stellar to base Terapagos`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'terapagos', ability: 'terashift', moves: ['memento'], teraType: 'Stellar'},
{species: 'darkrai', moves: ['darkpulse']},
], [
Expand Down
4 changes: 2 additions & 2 deletions test/sim/misc/terapagos.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe(`Terapagos`, function () {
});

it.skip(`should accept the Terastallization choice, but not Terastallize while Transformed into Terapagos-Terastal`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'ditto', ability: 'imposter', moves: ['sleeptalk']},
], [
{species: 'terapagos', ability: 'terashift', moves: ['sleeptalk'], teraType: 'Stellar'},
Expand All @@ -25,7 +25,7 @@ describe(`Terapagos`, function () {
});

it(`[Hackmons] should not cause Terapagos-Terastal to become Terapagos-Stellar if the user is Transformed`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'terapagos', ability: 'terashift', moves: ['transform'], teraType: 'Stellar'},
{species: 'pikachu', moves: ['sleeptalk']},
], [
Expand Down
28 changes: 14 additions & 14 deletions test/sim/misc/terastal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("Terastallization", function () {
});

it('should change the user\'s type to its Tera type after terastallizing', function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Ampharos', ability: 'static', moves: ['voltswitch', 'dragonpulse'], teraType: 'Dragon'},
], [
{species: 'Ampharos', ability: 'static', moves: ['voltswitch'], teraType: 'Dragon'},
Expand All @@ -21,7 +21,7 @@ describe("Terastallization", function () {
});

it('should persist the user\'s changed type after switching', function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Ampharos', ability: 'static', moves: ['voltswitch', 'dragonpulse'], teraType: 'Dragon'},
{species: 'Flaaffy', ability: 'static', moves: ['voltswitch', 'dragonpulse'], teraType: 'Electric'},
], [
Expand All @@ -34,7 +34,7 @@ describe("Terastallization", function () {
});

it('should give STAB correctly to the user\'s old types', function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Ampharos', ability: 'shellarmor', moves: ['shockwave', 'swift'], teraType: 'Electric'},
], [
{species: 'Ampharos', ability: 'shellarmor', moves: ['shockwave', 'swift'], teraType: 'Normal'},
Expand All @@ -49,7 +49,7 @@ describe("Terastallization", function () {
assert.bounded(nonTeraDamage, [40, 48],
"Terastallizing did not keep old type's STAB; actual damage: " + nonTeraDamage);

battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Mimikyu', ability: 'disguise', item: 'laggingtail', moves: ['shadowclaw', 'waterfall', 'sleeptalk'], teraType: 'Water'},
], [
{species: 'Alomomola', ability: 'battlearmor', moves: ['soak'], teraType: 'Normal'},
Expand All @@ -73,7 +73,7 @@ describe("Terastallization", function () {
});

it('should give STAB correctly to the user\'s underlying types after changing forme', function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Mimikyu', ability: 'disguise', item: 'laggingtail', moves: ['shadowclaw', 'waterfall', 'sleeptalk'], teraType: 'Water'},
], [
{species: 'Alomomola', ability: 'battlearmor', moves: ['watergun', 'soak'], teraType: 'Normal'},
Expand All @@ -99,7 +99,7 @@ describe("Terastallization", function () {

describe('Buffing low BP move behavior', function () {
it(`should boost the base power of weaker moves with the same Tera Type to 60 BP`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'magnemite', moves: ['nuzzle']},
], [
{species: 'mew', ability: 'shellarmor', moves: ['sleeptalk']},
Expand All @@ -112,7 +112,7 @@ describe("Terastallization", function () {
});

it(`should only boost base power 60 BP after all other base power modifiers are applied`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'cufant', ability: 'technician', moves: ['bulletpunch']},
], [
{species: 'mew', ability: 'shellarmor', moves: ['sleeptalk']},
Expand All @@ -125,7 +125,7 @@ describe("Terastallization", function () {
});

it(`should not boost the base power of moves with variable base power under 60 BP`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'wiglett', ivs: {hp: 0}, moves: ['waterspout']},
], [
{species: 'mew', ability: 'shellarmor', moves: ['seismictoss']},
Expand All @@ -138,7 +138,7 @@ describe("Terastallization", function () {
});

it(`should boost STAB moves that weren't STAB moves prior to terastallizing`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'espathra', evs: {atk: 252}, moves: ['peck', 'aerialace'], teraType: 'Flying'},
], [
{species: 'arceus', ability: 'shellarmor', moves: ['haze']},
Expand All @@ -153,7 +153,7 @@ describe("Terastallization", function () {
});

it(`shouldn't boost non-STAB moves with <60 Base Power`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'palafinhero', moves: ['leafage'], teraType: 'Electric'},
], [
{species: 'arceus', ability: 'shellarmor', moves: ['haze']},
Expand All @@ -168,7 +168,7 @@ describe("Terastallization", function () {
});

it(`shouldn't boost <60 Base Power priority moves forced via Encore`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'hariyama', moves: ['bulletpunch', 'sleeptalk'], teraType: 'Steel'},
], [
{species: 'salazzle ', moves: ['encore', 'sleeptalk']},
Expand All @@ -184,7 +184,7 @@ describe("Terastallization", function () {
});

it("should combine with Adaptability for an overall STAB of x2.25", () => {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: "Dragalge", ability: 'adaptability', moves: ['venoshock'], teraType: "Poison"},
], [
{species: "Mareep", ability: 'static', moves: ['sleeptalk']},
Expand All @@ -195,7 +195,7 @@ describe("Terastallization", function () {
});

it("should not give the Adaptability boost on the user's old types", () => {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: "Dragalge", ability: 'adaptability', moves: ['venoshock'], teraType: "Dragon"},
], [
{species: "Mareep", ability: 'static', moves: ['sleeptalk']},
Expand All @@ -206,7 +206,7 @@ describe("Terastallization", function () {
});

it(`should allow hacked Megas to Terastallize in Hackmons play`, function () {
battle = common.createBattle({formatid: 'gen9purehackmons@@@!teampreview'}, [[
battle = common.gen(9).createBattle({formatid: 'gen9purehackmons@@@!teampreview'}, [[
{species: 'Mewtwo-Mega-X', moves: ['sleeptalk'], teraType: 'Fairy'},
], [
{species: 'Necrozma-Ultra', moves: ['sleeptalk'], teraType: 'Normal'},
Expand Down
14 changes: 7 additions & 7 deletions test/sim/misc/terastellar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("Tera Stellar", function () {
});

it(`should increase the damage of non-STAB moves by 1.2x on the first use of that move type`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Wynaut', ability: 'noguard', moves: ['surf', 'hydropump', 'extrasensory', 'hyperspacehole'], teraType: 'Stellar'},
], [
{species: 'Happiny', ability: 'shellarmor', moves: ['softboiled']},
Expand Down Expand Up @@ -45,7 +45,7 @@ describe("Tera Stellar", function () {
});

it(`should not have the once-per-type restriction when used by Terapagos`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Terapagos', ability: 'terashift', moves: ['surf', 'hypervoice'], item: 'laggingtail', teraType: 'Stellar'},
], [
{species: 'Chansey', ability: 'shellarmor', moves: ['softboiled']},
Expand All @@ -71,7 +71,7 @@ describe("Tera Stellar", function () {
});

it(`should not modify the Pokemon's base type for defensive purposes`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Krookodile', moves: ['sleeptalk'], teraType: 'Stellar'},
], [
{species: 'Tornadus', ability: 'prankster', moves: ['psychic', 'thunderwave', 'leer']},
Expand All @@ -92,7 +92,7 @@ describe("Tera Stellar", function () {
});

it(`should only be super-effective against opposing Terastallized targets`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Krookodile', moves: ['terablast'], teraType: 'Stellar'},
], [
{species: 'Steelix', item: 'weaknesspolicy', moves: ['sleeptalk'], teraType: 'Stellar'},
Expand All @@ -104,7 +104,7 @@ describe("Tera Stellar", function () {
});

it(`should increase the user's stats with Tera Blast if the user has Contrary`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'inkay', ability: 'contrary', moves: ['terablast'], teraType: 'Stellar'},
], [
{species: 'chansey', moves: ['sleeptalk']},
Expand All @@ -118,7 +118,7 @@ describe("Tera Stellar", function () {
});

it(`should not work with Adapatability`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Wynaut', ability: 'adaptability', moves: ['hyperspacehole', 'terablast'], teraType: 'Stellar'},
], [
{species: 'Happiny', ability: 'shellarmor', moves: ['softboiled']},
Expand All @@ -144,7 +144,7 @@ describe("Tera Stellar", function () {
});

it(`should increase the damage of all hits of a multi-hit move`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'Wynaut', moves: ['surgingstrikes', 'flipturn'], teraType: 'Stellar'},
], [
{species: 'Blissey', moves: ['softboiled']},
Expand Down
2 changes: 1 addition & 1 deletion test/sim/moves/dragoncheer.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Dragon Cheer', function () {
});

it('should not increase ratio if affected Pokemon turns into a Dragon Type after Dragon Cheer', function () {
battle = common.createBattle({gameType: 'doubles'}, [[
battle = common.gen(9).createBattle({gameType: 'doubles'}, [[
{species: 'dragapult', moves: ['dragoncheer', 'splash']},
{species: 'horsea', moves: ['bubble'], teraType: 'Dragon'},
], [
Expand Down
2 changes: 1 addition & 1 deletion test/sim/moves/roost.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('Roost', function () {
});

it('should not remove Flying type during Terastallization', function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: "Dudunsparce", ability: "runaway", moves: ['sleeptalk', 'roost'], teraType: "Flying"},
], [
{species: "Chansey", ability: "naturalcure", moves: ['earthquake']},
Expand Down
4 changes: 2 additions & 2 deletions test/sim/moves/tarshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Tar Shot', function () {
});

it(`should not remove the Tar Shot status when a Pokemon Terastallizes`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'wynaut', moves: ['tarshot', 'flamecharge']},
], [
{species: 'snorlax', item: 'weaknesspolicy', moves: ['sleeptalk']},
Expand All @@ -76,7 +76,7 @@ describe('Tar Shot', function () {
});

it(`should prevent a Terastallized Pokemon from being afflicted with the Tar Shot status`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'wynaut', moves: ['tarshot', 'flamecharge']},
], [
{species: 'snorlax', item: 'weaknesspolicy', moves: ['sleeptalk']},
Expand Down
6 changes: 3 additions & 3 deletions test/sim/moves/terablast.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const common = require('./../../common');

describe('Tera Blast', function () {
it(`should be a special attack when base stats are tied`, function () {
const battle = common.createBattle([[
const battle = common.gen(9).createBattle([[
// Regidrago has equal base attack and special attack stats.
{species: 'regidrago', ability: 'dragonsmaw', moves: ['terablast']},
], [
Expand All @@ -17,7 +17,7 @@ describe('Tera Blast', function () {
});

it(`should be a physical attack when terastallized with higher attack stat`, function () {
const battle = common.createBattle([[
const battle = common.gen(9).createBattle([[
// Regidrago has equal base attack and special attack stats.
{species: 'regidrago', ability: 'dragonsmaw', moves: ['terablast', 'dragondance']},
], [
Expand Down Expand Up @@ -47,7 +47,7 @@ describe('Tera Blast', function () {

// Skipped until https://github.com/smogon/pokemon-showdown/issues/9381 is fixed.
it.skip(`should be a special attack when terastallized even if target ignores stat changes`, function () {
const battle = common.createBattle([[
const battle = common.gen(9).createBattle([[
// Regidrago has equal base attack and special attack stats.
{species: 'regidrago', ability: 'dragonsmaw', moves: ['terablast', 'dragondance']},
], [
Expand Down
6 changes: 3 additions & 3 deletions test/sim/moves/terastarstorm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe(`Tera Starstorm`, function () {
});

it(`should be a physical attack when terastallized with higher attack stat and the user is Terapagos-Stellar`, function () {
battle = common.createBattle([[
battle = common.gen(9).createBattle([[
{species: 'terapagos', evs: {atk: 252}, ability: 'terashift', moves: ['terastarstorm'], teraType: 'Stellar'},
], [
{species: 'regirock', moves: ['sleeptalk']},
Expand All @@ -22,7 +22,7 @@ describe(`Tera Starstorm`, function () {
});

it(`should be a spread move when the user is Terapagos-Stellar`, function () {
battle = common.createBattle({gameType: 'doubles'}, [[
battle = common.gen(9).createBattle({gameType: 'doubles'}, [[
{species: 'terapagos', ability: 'terashift', moves: ['terastarstorm'], teraType: 'Stellar'},
{species: 'pichu', moves: ['sleeptalk']},
], [
Expand All @@ -38,7 +38,7 @@ describe(`Tera Starstorm`, function () {
});

it(`should only get its unique properties while the user is Terapagos-Stellar`, function () {
battle = common.createBattle({gameType: 'doubles'}, [[
battle = common.gen(9).createBattle({gameType: 'doubles'}, [[
{species: 'incineroar', moves: ['terastarstorm'], teraType: 'Stellar'},
{species: 'pichu', moves: ['sleeptalk']},
], [
Expand Down
Loading

0 comments on commit 9fc5e0f

Please sign in to comment.