File size: 871 Bytes
5c2ed06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';

const assert = require('./../../assert');
const common = require('./../../common');

let battle;

describe(`Speed`, () => {
	afterEach(() => {
		battle.destroy();
	});

	it.skip(`should cap chained Speed modifiers at 410 as a lower bound`, () => {
		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);
	});
});