File size: 1,349 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';

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

let battle;

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

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

		// Currently throws a choice error
		battle.makeChoices('move sleeptalk terastallize', 'auto');

		const ditto = battle.p1.active[0];
		assert.false(!!ditto.terastallized);
	});

	it(`[Hackmons] should not cause Terapagos-Terastal to become Terapagos-Stellar if the user is Transformed`, () => {
		battle = common.gen(9).createBattle([[
			{ species: 'terapagos', ability: 'terashift', moves: ['transform'], teraType: 'Stellar' },
			{ species: 'pikachu', moves: ['sleeptalk'] },
		], [
			{ species: 'silicobra', moves: ['sleeptalk'] },
		]]);

		battle.makeChoices();
		battle.makeChoices('move sleeptalk terastallize', 'auto');
		battle.makeChoices('switch 2', 'auto');
		battle.makeChoices('switch 2', 'auto');
		const terapagos = battle.p1.active[0];
		assert.species(terapagos, 'Terapagos-Terastal');
	});
});