mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-18 16:47:22 -05:00
* Improve Volcalith tests readability * Add G-Max Volcalith recoil damage order test * Add 1 HP priority tests * Add charge move targeting test * Correct assertions of Ripen / Sturdy * Skip failing tests * Add Volcalith Black Sludge test * Add Pressure Max / Z-move tests * Add Pressure submove test * Add NGas speed test * Skip NGas speed test * Add White Herb double Intimidate test * Remove debug log * Remove duplicate Pressure test * Improve White Herb Intimidate test title * Add Rollout Storage tests * Add spread move Rollout storage test * Add Magician Weakness Policy test * Add Sleep tests * Add Shell Bell spread move test * Add Synchronize Lum Berry test * oh yeah it doesn't work * Remove duplicate test * Add Sunsteel Strike tests * Add Leech Seed ally switch test * Add Primal weather Natural Gift test * Add Emergency Exit hazards test * Add generic hazards tests * Add and standardize Arceus tests * Add Transform ability test * Add and standardize Parting Shot tests * Add Memento tests * Add Me First test * Add Cursed Body Z-move test * Add Assurance targeting test * Clarify Assurance test description * Add double faint switch test * Add Receiver KO boost ability * Add double Unnerve test * Add Dynamax Eject Pack test * Improve Dynamax forced switchout test * Add Protective Pads Perish Body test * Add Sticky Web Pressure test * Add Speed modifier lower bound test * Add Cloud Nine Hydration test * Correct Cursed Body test * Add Grassy Terrain Leftovers test * Remove leftover debug * Add additional Receiver and Soul-Heart tests * Add Spite tests * mish * Add Shell Bell multihit test * Add WP Dragon Tail test Co-authored-by: The Immortal <the_immortal123@live.com>
27 lines
879 B
JavaScript
27 lines
879 B
JavaScript
'use strict';
|
|
|
|
const assert = require('./../../assert');
|
|
const common = require('./../../common');
|
|
|
|
let battle;
|
|
|
|
describe(`Speed`, function () {
|
|
afterEach(function () {
|
|
battle.destroy();
|
|
});
|
|
|
|
it.skip(`should cap chained Speed modifiers at 410 as a lower bound`, function () {
|
|
battle = common.createBattle({gameType: 'doubles'}, [[
|
|
{species: 'regigigas', ability: 'slowstart', item: 'ironball', moves: ['waterpledge']},
|
|
{species: 'ivysaur', moves: ['grasspledge']},
|
|
], [
|
|
{species: 'wynaut', moves: ['sleeptalk']},
|
|
{species: 'wynaut', moves: ['sleeptalk']},
|
|
]]);
|
|
battle.makeChoices('move waterpledge -2, move grasspledge -1', 'auto');
|
|
const regigigas = battle.p1.active[0];
|
|
// Regigigas has 236 starting Speed; the end result should be pokeRound(236 * 410 / 4096), not pokeRound(236 * 256 / 4096)
|
|
assert.equal(regigigas.getStat('spe'), 24);
|
|
});
|
|
});
|