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

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

let battle;

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

	it('should activate after hazards', () => {
		battle = common.createBattle({ gameType: 'doubles' }, [[
			{ species: 'snom', level: 1, ability: 'noguard', moves: ['sleeptalk'] },
			{ species: 'snom', level: 1, ability: 'noguard', moves: ['sleeptalk'] },
			{ species: 'deerling', moves: ['sleeptalk'] },
			{ species: 'sinistcha', ability: 'hospitality', moves: ['sleeptalk'] },
		], [
			{ species: 'kleavor', moves: ['stoneaxe'] },
			{ species: 'kleavor', moves: ['stoneaxe'] },
		]]);
		battle.makeChoices();
		battle.makeChoices('switch 3, switch 4');
		assert.fullHP(battle.p1.pokemon[0].status);
	});
});