File size: 693 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
'use strict';

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

let battle;

describe('Fell Stringer', () => {
	afterEach(() => {
		battle.destroy();
	});

	it('should get a boost when KOing a Pokemon after redirection', () => {
		battle = common.createBattle({ gameType: 'doubles' }, [[
			{ species: 'joltik', moves: ['fellstinger'] },
			{ species: 'wynaut', moves: ['sleeptalk'] },
		], [
			{ species: 'wynaut', moves: ['sleeptalk'] },
			{ species: 'pichu', level: 1, moves: ['followme'] },
		]]);
		battle.makeChoices("move fellstinger 1, move sleeptalk", "move sleeptalk, move followme");
		assert.statStage(battle.p1.active[0], 'atk', 3);
	});
});