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

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

let battle;

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

	it('should change types based on Morpeko forme', () => {
		battle = common.createBattle([
			[{ species: 'Morpeko', ability: 'hungerswitch', moves: ['aurawheel'] }],
			[{ species: 'Rhyperior', ability: 'solidrock', moves: ['stealthrock'] }],
		]);
		battle.makeChoices('move aurawheel', 'move stealthrock');
		assert.fullHP(battle.p2.active[0]);
		battle.makeChoices('move aurawheel', 'move stealthrock');
		assert.false.fullHP(battle.p2.active[0]);
	});
});